StringUtils.java

1
/*
2
 * Licensed to the Apache Software Foundation (ASF) under one or more
3
 * contributor license agreements.  See the NOTICE file distributed with
4
 * this work for additional information regarding copyright ownership.
5
 * The ASF licenses this file to You under the Apache License, Version 2.0
6
 * (the "License"); you may not use this file except in compliance with
7
 * the License.  You may obtain a copy of the License at
8
 *
9
 *      http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 * Unless required by applicable law or agreed to in writing, software
12
 * distributed under the License is distributed on an "AS IS" BASIS,
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 * See the License for the specific language governing permissions and
15
 * limitations under the License.
16
 */
17
package org.apache.commons.lang3;
18
19
import java.io.UnsupportedEncodingException;
20
import java.nio.charset.Charset;
21
import java.text.Normalizer;
22
import java.util.ArrayList;
23
import java.util.Arrays;
24
import java.util.Iterator;
25
import java.util.List;
26
import java.util.Locale;
27
import java.util.Objects;
28
import java.util.regex.Pattern;
29
30
/**
31
 * <p>Operations on {@link java.lang.String} that are
32
 * {@code null} safe.</p>
33
 *
34
 * <ul>
35
 *  <li><b>IsEmpty/IsBlank</b>
36
 *      - checks if a String contains text</li>
37
 *  <li><b>Trim/Strip</b>
38
 *      - removes leading and trailing whitespace</li>
39
 *  <li><b>Equals/Compare</b>
40
 *      - compares two strings null-safe</li>
41
 *  <li><b>startsWith</b>
42
 *      - check if a String starts with a prefix null-safe</li>
43
 *  <li><b>endsWith</b>
44
 *      - check if a String ends with a suffix null-safe</li>
45
 *  <li><b>IndexOf/LastIndexOf/Contains</b>
46
 *      - null-safe index-of checks
47
 *  <li><b>IndexOfAny/LastIndexOfAny/IndexOfAnyBut/LastIndexOfAnyBut</b>
48
 *      - index-of any of a set of Strings</li>
49
 *  <li><b>ContainsOnly/ContainsNone/ContainsAny</b>
50
 *      - does String contains only/none/any of these characters</li>
51
 *  <li><b>Substring/Left/Right/Mid</b>
52
 *      - null-safe substring extractions</li>
53
 *  <li><b>SubstringBefore/SubstringAfter/SubstringBetween</b>
54
 *      - substring extraction relative to other strings</li>
55
 *  <li><b>Split/Join</b>
56
 *      - splits a String into an array of substrings and vice versa</li>
57
 *  <li><b>Remove/Delete</b>
58
 *      - removes part of a String</li>
59
 *  <li><b>Replace/Overlay</b>
60
 *      - Searches a String and replaces one String with another</li>
61
 *  <li><b>Chomp/Chop</b>
62
 *      - removes the last part of a String</li>
63
 *  <li><b>AppendIfMissing</b>
64
 *      - appends a suffix to the end of the String if not present</li>
65
 *  <li><b>PrependIfMissing</b>
66
 *      - prepends a prefix to the start of the String if not present</li>
67
 *  <li><b>LeftPad/RightPad/Center/Repeat</b>
68
 *      - pads a String</li>
69
 *  <li><b>UpperCase/LowerCase/SwapCase/Capitalize/Uncapitalize</b>
70
 *      - changes the case of a String</li>
71
 *  <li><b>CountMatches</b>
72
 *      - counts the number of occurrences of one String in another</li>
73
 *  <li><b>IsAlpha/IsNumeric/IsWhitespace/IsAsciiPrintable</b>
74
 *      - checks the characters in a String</li>
75
 *  <li><b>DefaultString</b>
76
 *      - protects against a null input String</li>
77
 *  <li><b>Rotate</b>
78
 *      - rotate (circular shift) a String</li>
79
 *  <li><b>Reverse/ReverseDelimited</b>
80
 *      - reverses a String</li>
81
 *  <li><b>Abbreviate</b>
82
 *      - abbreviates a string using ellipsis or another given String</li>
83
 *  <li><b>Difference</b>
84
 *      - compares Strings and reports on their differences</li>
85
 *  <li><b>LevenshteinDistance</b>
86
 *      - the number of changes needed to change one String into another</li>
87
 * </ul>
88
 *
89
 * <p>The {@code StringUtils} class defines certain words related to
90
 * String handling.</p>
91
 *
92
 * <ul>
93
 *  <li>null - {@code null}</li>
94
 *  <li>empty - a zero-length string ({@code ""})</li>
95
 *  <li>space - the space character ({@code ' '}, char 32)</li>
96
 *  <li>whitespace - the characters defined by {@link Character#isWhitespace(char)}</li>
97
 *  <li>trim - the characters &lt;= 32 as in {@link String#trim()}</li>
98
 * </ul>
99
 *
100
 * <p>{@code StringUtils} handles {@code null} input Strings quietly.
101
 * That is to say that a {@code null} input will return {@code null}.
102
 * Where a {@code boolean} or {@code int} is being returned
103
 * details vary by method.</p>
104
 *
105
 * <p>A side effect of the {@code null} handling is that a
106
 * {@code NullPointerException} should be considered a bug in
107
 * {@code StringUtils}.</p>
108
 *
109
 * <p>Methods in this class give sample code to explain their operation.
110
 * The symbol {@code *} is used to indicate any input including {@code null}.</p>
111
 *
112
 * <p>#ThreadSafe#</p>
113
 * @see java.lang.String
114
 * @since 1.0
115
 */
116
//@Immutable
117
public class StringUtils {
118
    // Performance testing notes (JDK 1.4, Jul03, scolebourne)
119
    // Whitespace:
120
    // Character.isWhitespace() is faster than WHITESPACE.indexOf()
121
    // where WHITESPACE is a string of all whitespace characters
122
    //
123
    // Character access:
124
    // String.charAt(n) versus toCharArray(), then array[n]
125
    // String.charAt(n) is about 15% worse for a 10K string
126
    // They are about equal for a length 50 string
127
    // String.charAt(n) is about 4 times better for a length 3 string
128
    // String.charAt(n) is best bet overall
129
    //
130
    // Append:
131
    // String.concat about twice as fast as StringBuffer.append
132
    // (not sure who tested this)
133
134
    /**
135
     * A String for a space character.
136
     *
137
     * @since 3.2
138
     */
139
    public static final String SPACE = " ";
140
141
    /**
142
     * The empty String {@code ""}.
143
     * @since 2.0
144
     */
145
    public static final String EMPTY = "";
146
147
    /**
148
     * A String for linefeed LF ("\n").
149
     *
150
     * @see <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.10.6">JLF: Escape Sequences
151
     *      for Character and String Literals</a>
152
     * @since 3.2
153
     */
154
    public static final String LF = "\n";
155
156
    /**
157
     * A String for carriage return CR ("\r").
158
     *
159
     * @see <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.10.6">JLF: Escape Sequences
160
     *      for Character and String Literals</a>
161
     * @since 3.2
162
     */
163
    public static final String CR = "\r";
164
165
    /**
166
     * Represents a failed index search.
167
     * @since 2.1
168
     */
169
    public static final int INDEX_NOT_FOUND = -1;
170
171
    /**
172
     * <p>The maximum size to which the padding constant(s) can expand.</p>
173
     */
174
    private static final int PAD_LIMIT = 8192;
175
176
    /**
177
     * <p>{@code StringUtils} instances should NOT be constructed in
178
     * standard programming. Instead, the class should be used as
179
     * {@code StringUtils.trim(" foo ");}.</p>
180
     *
181
     * <p>This constructor is public to permit tools that require a JavaBean
182
     * instance to operate.</p>
183
     */
184
    public StringUtils() {
185
        super();
186
    }
187
188
    // Empty checks
189
    //-----------------------------------------------------------------------
190
    /**
191
     * <p>Checks if a CharSequence is empty ("") or null.</p>
192
     *
193
     * <pre>
194
     * StringUtils.isEmpty(null)      = true
195
     * StringUtils.isEmpty("")        = true
196
     * StringUtils.isEmpty(" ")       = false
197
     * StringUtils.isEmpty("bob")     = false
198
     * StringUtils.isEmpty("  bob  ") = false
199
     * </pre>
200
     *
201
     * <p>NOTE: This method changed in Lang version 2.0.
202
     * It no longer trims the CharSequence.
203
     * That functionality is available in isBlank().</p>
204
     *
205
     * @param cs  the CharSequence to check, may be null
206
     * @return {@code true} if the CharSequence is empty or null
207
     * @since 3.0 Changed signature from isEmpty(String) to isEmpty(CharSequence)
208
     */
209
    public static boolean isEmpty(final CharSequence cs) {
210 3 1. isEmpty : negated conditional → KILLED
2. isEmpty : negated conditional → KILLED
3. isEmpty : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return cs == null || cs.length() == 0;
211
    }
212
213
    /**
214
     * <p>Checks if a CharSequence is not empty ("") and not null.</p>
215
     *
216
     * <pre>
217
     * StringUtils.isNotEmpty(null)      = false
218
     * StringUtils.isNotEmpty("")        = false
219
     * StringUtils.isNotEmpty(" ")       = true
220
     * StringUtils.isNotEmpty("bob")     = true
221
     * StringUtils.isNotEmpty("  bob  ") = true
222
     * </pre>
223
     *
224
     * @param cs  the CharSequence to check, may be null
225
     * @return {@code true} if the CharSequence is not empty and not null
226
     * @since 3.0 Changed signature from isNotEmpty(String) to isNotEmpty(CharSequence)
227
     */
228
    public static boolean isNotEmpty(final CharSequence cs) {
229 2 1. isNotEmpty : negated conditional → KILLED
2. isNotEmpty : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return !isEmpty(cs);
230
    }
231
       
232
    /**
233
     * <p>Checks if any of the CharSequences are empty ("") or null.</p>
234
     *
235
     * <pre>
236
     * StringUtils.isAnyEmpty(null)             = true
237
     * StringUtils.isAnyEmpty(null, "foo")      = true
238
     * StringUtils.isAnyEmpty("", "bar")        = true
239
     * StringUtils.isAnyEmpty("bob", "")        = true
240
     * StringUtils.isAnyEmpty("  bob  ", null)  = true
241
     * StringUtils.isAnyEmpty(" ", "bar")       = false
242
     * StringUtils.isAnyEmpty("foo", "bar")     = false
243
     * </pre>
244
     *
245
     * @param css  the CharSequences to check, may be null or empty
246
     * @return {@code true} if any of the CharSequences are empty or null
247
     * @since 3.2
248
     */
249
    public static boolean isAnyEmpty(final CharSequence... css) {
250 1 1. isAnyEmpty : negated conditional → KILLED
      if (ArrayUtils.isEmpty(css)) {
251 1 1. isAnyEmpty : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
252
      }
253 3 1. isAnyEmpty : changed conditional boundary → KILLED
2. isAnyEmpty : Changed increment from 1 to -1 → KILLED
3. isAnyEmpty : negated conditional → KILLED
      for (final CharSequence cs : css){
254 1 1. isAnyEmpty : negated conditional → KILLED
        if (isEmpty(cs)) {
255 1 1. isAnyEmpty : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
          return true;
256
        }
257
      }
258 1 1. isAnyEmpty : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
      return false;
259
    }
260
261
    /**
262
     * <p>Checks if any of the CharSequences are not empty ("") and not null.</p>
263
     *
264
     * <pre>
265
     * StringUtils.isAnyNotEmpty(null)             = false
266
     * StringUtils.isAnyNotEmpty(new String[] {})  = false
267
     * StringUtils.isAnyNotEmpty(null, "foo")      = true
268
     * StringUtils.isAnyNotEmpty("", "bar")        = true
269
     * StringUtils.isAnyNotEmpty("bob", "")        = true
270
     * StringUtils.isAnyNotEmpty("  bob  ", null)  = true
271
     * StringUtils.isAnyNotEmpty(" ", "bar")       = true
272
     * StringUtils.isAnyNotEmpty("foo", "bar")     = true
273
     * </pre>
274
     *
275
     * @param css  the CharSequences to check, may be null or empty
276
     * @return {@code true} if any of the CharSequences are not empty and not null
277
     * @since 3.6
278
     */
279
    public static boolean isAnyNotEmpty(final CharSequence... css) {
280 1 1. isAnyNotEmpty : negated conditional → KILLED
      if (ArrayUtils.isEmpty(css)) {
281 1 1. isAnyNotEmpty : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
282
      }
283 3 1. isAnyNotEmpty : changed conditional boundary → KILLED
2. isAnyNotEmpty : Changed increment from 1 to -1 → KILLED
3. isAnyNotEmpty : negated conditional → KILLED
      for (final CharSequence cs : css) {
284 1 1. isAnyNotEmpty : negated conditional → KILLED
        if (isNotEmpty(cs)) {
285 1 1. isAnyNotEmpty : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
          return true;
286
        }
287
      }
288 1 1. isAnyNotEmpty : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
      return false;
289
    }
290
291
    /**
292
     * <p>Checks if none of the CharSequences are empty ("") or null.</p>
293
     *
294
     * <pre>
295
     * StringUtils.isNoneEmpty(null)             = false
296
     * StringUtils.isNoneEmpty(null, "foo")      = false
297
     * StringUtils.isNoneEmpty("", "bar")        = false
298
     * StringUtils.isNoneEmpty("bob", "")        = false
299
     * StringUtils.isNoneEmpty("  bob  ", null)  = false
300
     * StringUtils.isNoneEmpty(new String[] {})  = false
301
     * StringUtils.isNoneEmpty(" ", "bar")       = true
302
     * StringUtils.isNoneEmpty("foo", "bar")     = true
303
     * </pre>
304
     *
305
     * @param css  the CharSequences to check, may be null or empty
306
     * @return {@code true} if none of the CharSequences are empty or null
307
     * @since 3.2
308
     */
309
    public static boolean isNoneEmpty(final CharSequence... css) {
310 2 1. isNoneEmpty : negated conditional → KILLED
2. isNoneEmpty : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
      return !isAnyEmpty(css);
311
    }
312
313
    /**
314
     * <p>Checks if a CharSequence is empty (""), null or whitespace only.</p>
315
     * 
316
     * <p>Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
317
     *
318
     * <pre>
319
     * StringUtils.isBlank(null)      = true
320
     * StringUtils.isBlank("")        = true
321
     * StringUtils.isBlank(" ")       = true
322
     * StringUtils.isBlank("bob")     = false
323
     * StringUtils.isBlank("  bob  ") = false
324
     * </pre>
325
     *
326
     * @param cs  the CharSequence to check, may be null
327
     * @return {@code true} if the CharSequence is null, empty or whitespace only
328
     * @since 2.0
329
     * @since 3.0 Changed signature from isBlank(String) to isBlank(CharSequence)
330
     */
331
    public static boolean isBlank(final CharSequence cs) {
332
        int strLen;
333 2 1. isBlank : negated conditional → KILLED
2. isBlank : negated conditional → KILLED
        if (cs == null || (strLen = cs.length()) == 0) {
334 1 1. isBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return true;
335
        }
336 3 1. isBlank : changed conditional boundary → KILLED
2. isBlank : Changed increment from 1 to -1 → KILLED
3. isBlank : negated conditional → KILLED
        for (int i = 0; i < strLen; i++) {
337 1 1. isBlank : negated conditional → KILLED
            if (Character.isWhitespace(cs.charAt(i)) == false) {
338 1 1. isBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
339
            }
340
        }
341 1 1. isBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
342
    }
343
344
    /**
345
     * <p>Checks if a CharSequence is not empty (""), not null and not whitespace only.</p>
346
     * 
347
     * <p>Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
348
     *
349
     * <pre>
350
     * StringUtils.isNotBlank(null)      = false
351
     * StringUtils.isNotBlank("")        = false
352
     * StringUtils.isNotBlank(" ")       = false
353
     * StringUtils.isNotBlank("bob")     = true
354
     * StringUtils.isNotBlank("  bob  ") = true
355
     * </pre>
356
     *
357
     * @param cs  the CharSequence to check, may be null
358
     * @return {@code true} if the CharSequence is
359
     *  not empty and not null and not whitespace only
360
     * @since 2.0
361
     * @since 3.0 Changed signature from isNotBlank(String) to isNotBlank(CharSequence)
362
     */
363
    public static boolean isNotBlank(final CharSequence cs) {
364 2 1. isNotBlank : negated conditional → KILLED
2. isNotBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return !isBlank(cs);
365
    }
366
367
    /**
368
     * <p>Checks if any of the CharSequences are empty ("") or null or whitespace only.</p>
369
     * 
370
     * <p>Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
371
     *
372
     * <pre>
373
     * StringUtils.isAnyBlank(null)             = true
374
     * StringUtils.isAnyBlank(null, "foo")      = true
375
     * StringUtils.isAnyBlank(null, null)       = true
376
     * StringUtils.isAnyBlank("", "bar")        = true
377
     * StringUtils.isAnyBlank("bob", "")        = true
378
     * StringUtils.isAnyBlank("  bob  ", null)  = true
379
     * StringUtils.isAnyBlank(" ", "bar")       = true
380
     * StringUtils.isAnyBlank(new String[] {})  = false
381
     * StringUtils.isAnyBlank("foo", "bar")     = false
382
     * </pre>
383
     *
384
     * @param css  the CharSequences to check, may be null or empty
385
     * @return {@code true} if any of the CharSequences are empty or null or whitespace only
386
     * @since 3.2
387
     */
388
    public static boolean isAnyBlank(final CharSequence... css) {
389 1 1. isAnyBlank : negated conditional → KILLED
      if (ArrayUtils.isEmpty(css)) {
390 1 1. isAnyBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
391
      }
392 3 1. isAnyBlank : changed conditional boundary → KILLED
2. isAnyBlank : Changed increment from 1 to -1 → KILLED
3. isAnyBlank : negated conditional → KILLED
      for (final CharSequence cs : css){
393 1 1. isAnyBlank : negated conditional → KILLED
        if (isBlank(cs)) {
394 1 1. isAnyBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
          return true;
395
        }
396
      }
397 1 1. isAnyBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
      return false;
398
    }
399
400
    /**
401
     * <p>Checks if any of the CharSequences are not empty (""), not null and not whitespace only.</p>
402
     * 
403
     * <p>Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
404
     *
405
     * <pre>
406
     * StringUtils.isAnyNotBlank(null)             = false
407
     * StringUtils.isAnyNotBlank(null, "foo")      = true
408
     * StringUtils.isAnyNotBlank(null, null)       = false
409
     * StringUtils.isAnyNotBlank("", "bar")        = true
410
     * StringUtils.isAnyNotBlank("bob", "")        = true
411
     * StringUtils.isAnyNotBlank("  bob  ", null)  = true
412
     * StringUtils.isAnyNotBlank(" ", "bar")       = true
413
     * StringUtils.isAnyNotBlank("foo", "bar")     = true
414
     * StringUtils.isAnyNotBlank(new String[] {})  = false
415
     * </pre>
416
     *
417
     * @param css  the CharSequences to check, may be null or empty
418
     * @return {@code true} if any of the CharSequences are not empty and not null and not whitespace only
419
     * @since 3.6
420
     */
421
    public static boolean isAnyNotBlank(final CharSequence... css) {
422 1 1. isAnyNotBlank : negated conditional → KILLED
      if (ArrayUtils.isEmpty(css)) {
423 1 1. isAnyNotBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
424
      }
425 3 1. isAnyNotBlank : changed conditional boundary → KILLED
2. isAnyNotBlank : Changed increment from 1 to -1 → KILLED
3. isAnyNotBlank : negated conditional → KILLED
      for (final CharSequence cs : css) {
426 1 1. isAnyNotBlank : negated conditional → KILLED
        if (isNotBlank(cs)) {
427 1 1. isAnyNotBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
          return true;
428
        }
429
      }
430 1 1. isAnyNotBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
      return false;
431
    }
432
433
    /**
434
     * <p>Checks if none of the CharSequences are empty (""), null or whitespace only.</p>
435
     * 
436
     * <p>Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
437
     *
438
     * <pre>
439
     * StringUtils.isNoneBlank(null)             = false
440
     * StringUtils.isNoneBlank(null, "foo")      = false
441
     * StringUtils.isNoneBlank(null, null)       = false
442
     * StringUtils.isNoneBlank("", "bar")        = false
443
     * StringUtils.isNoneBlank("bob", "")        = false
444
     * StringUtils.isNoneBlank("  bob  ", null)  = false
445
     * StringUtils.isNoneBlank(" ", "bar")       = false
446
     * StringUtils.isNoneBlank(new String[] {})  = false
447
     * StringUtils.isNoneBlank("foo", "bar")     = true
448
     * </pre>
449
     *
450
     * @param css  the CharSequences to check, may be null or empty
451
     * @return {@code true} if none of the CharSequences are empty or null or whitespace only
452
     * @since 3.2
453
     */
454
    public static boolean isNoneBlank(final CharSequence... css) {
455 2 1. isNoneBlank : negated conditional → KILLED
2. isNoneBlank : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
      return !isAnyBlank(css);
456
    }
457
458
    // Trim
459
    //-----------------------------------------------------------------------
460
    /**
461
     * <p>Removes control characters (char &lt;= 32) from both
462
     * ends of this String, handling {@code null} by returning
463
     * {@code null}.</p>
464
     *
465
     * <p>The String is trimmed using {@link String#trim()}.
466
     * Trim removes start and end characters &lt;= 32.
467
     * To strip whitespace use {@link #strip(String)}.</p>
468
     *
469
     * <p>To trim your choice of characters, use the
470
     * {@link #strip(String, String)} methods.</p>
471
     *
472
     * <pre>
473
     * StringUtils.trim(null)          = null
474
     * StringUtils.trim("")            = ""
475
     * StringUtils.trim("     ")       = ""
476
     * StringUtils.trim("abc")         = "abc"
477
     * StringUtils.trim("    abc    ") = "abc"
478
     * </pre>
479
     *
480
     * @param str  the String to be trimmed, may be null
481
     * @return the trimmed string, {@code null} if null String input
482
     */
483
    public static String trim(final String str) {
484 2 1. trim : negated conditional → KILLED
2. trim : mutated return of Object value for org/apache/commons/lang3/StringUtils::trim to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str == null ? null : str.trim();
485
    }
486
487
    /**
488
     * <p>Removes control characters (char &lt;= 32) from both
489
     * ends of this String returning {@code null} if the String is
490
     * empty ("") after the trim or if it is {@code null}.
491
     *
492
     * <p>The String is trimmed using {@link String#trim()}.
493
     * Trim removes start and end characters &lt;= 32.
494
     * To strip whitespace use {@link #stripToNull(String)}.</p>
495
     *
496
     * <pre>
497
     * StringUtils.trimToNull(null)          = null
498
     * StringUtils.trimToNull("")            = null
499
     * StringUtils.trimToNull("     ")       = null
500
     * StringUtils.trimToNull("abc")         = "abc"
501
     * StringUtils.trimToNull("    abc    ") = "abc"
502
     * </pre>
503
     *
504
     * @param str  the String to be trimmed, may be null
505
     * @return the trimmed String,
506
     *  {@code null} if only chars &lt;= 32, empty or null String input
507
     * @since 2.0
508
     */
509
    public static String trimToNull(final String str) {
510
        final String ts = trim(str);
511 2 1. trimToNull : negated conditional → KILLED
2. trimToNull : mutated return of Object value for org/apache/commons/lang3/StringUtils::trimToNull to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return isEmpty(ts) ? null : ts;
512
    }
513
514
    /**
515
     * <p>Removes control characters (char &lt;= 32) from both
516
     * ends of this String returning an empty String ("") if the String
517
     * is empty ("") after the trim or if it is {@code null}.
518
     *
519
     * <p>The String is trimmed using {@link String#trim()}.
520
     * Trim removes start and end characters &lt;= 32.
521
     * To strip whitespace use {@link #stripToEmpty(String)}.</p>
522
     *
523
     * <pre>
524
     * StringUtils.trimToEmpty(null)          = ""
525
     * StringUtils.trimToEmpty("")            = ""
526
     * StringUtils.trimToEmpty("     ")       = ""
527
     * StringUtils.trimToEmpty("abc")         = "abc"
528
     * StringUtils.trimToEmpty("    abc    ") = "abc"
529
     * </pre>
530
     *
531
     * @param str  the String to be trimmed, may be null
532
     * @return the trimmed String, or an empty String if {@code null} input
533
     * @since 2.0
534
     */
535
    public static String trimToEmpty(final String str) {
536 2 1. trimToEmpty : negated conditional → KILLED
2. trimToEmpty : mutated return of Object value for org/apache/commons/lang3/StringUtils::trimToEmpty to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str == null ? EMPTY : str.trim();
537
    }
538
539
    /**
540
     * <p>Truncates a String. This will turn
541
     * "Now is the time for all good men" into "Now is the time for".</p>
542
     *
543
     * <p>Specifically:</p>
544
     * <ul>
545
     *   <li>If {@code str} is less than {@code maxWidth} characters
546
     *       long, return it.</li>
547
     *   <li>Else truncate it to {@code substring(str, 0, maxWidth)}.</li>
548
     *   <li>If {@code maxWidth} is less than {@code 0}, throw an
549
     *       {@code IllegalArgumentException}.</li>
550
     *   <li>In no case will it return a String of length greater than
551
     *       {@code maxWidth}.</li>
552
     * </ul>
553
     *
554
     * <pre>
555
     * StringUtils.truncate(null, 0)       = null
556
     * StringUtils.truncate(null, 2)       = null
557
     * StringUtils.truncate("", 4)         = ""
558
     * StringUtils.truncate("abcdefg", 4)  = "abcd"
559
     * StringUtils.truncate("abcdefg", 6)  = "abcdef"
560
     * StringUtils.truncate("abcdefg", 7)  = "abcdefg"
561
     * StringUtils.truncate("abcdefg", 8)  = "abcdefg"
562
     * StringUtils.truncate("abcdefg", -1) = throws an IllegalArgumentException
563
     * </pre>
564
     *
565
     * @param str  the String to truncate, may be null
566
     * @param maxWidth  maximum length of result String, must be positive
567
     * @return truncated String, {@code null} if null String input
568
     * @since 3.5
569
     */
570
    public static String truncate(final String str, final int maxWidth) {
571 1 1. truncate : mutated return of Object value for org/apache/commons/lang3/StringUtils::truncate to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return truncate(str, 0, maxWidth);
572
    }
573
574
    /**
575
     * <p>Truncates a String. This will turn
576
     * "Now is the time for all good men" into "is the time for all".</p>
577
     *
578
     * <p>Works like {@code truncate(String, int)}, but allows you to specify
579
     * a "left edge" offset.
580
     *
581
     * <p>Specifically:</p>
582
     * <ul>
583
     *   <li>If {@code str} is less than {@code maxWidth} characters
584
     *       long, return it.</li>
585
     *   <li>Else truncate it to {@code substring(str, offset, maxWidth)}.</li>
586
     *   <li>If {@code maxWidth} is less than {@code 0}, throw an
587
     *       {@code IllegalArgumentException}.</li>
588
     *   <li>If {@code offset} is less than {@code 0}, throw an
589
     *       {@code IllegalArgumentException}.</li>
590
     *   <li>In no case will it return a String of length greater than
591
     *       {@code maxWidth}.</li>
592
     * </ul>
593
     *
594
     * <pre>
595
     * StringUtils.truncate(null, 0, 0) = null
596
     * StringUtils.truncate(null, 2, 4) = null
597
     * StringUtils.truncate("", 0, 10) = ""
598
     * StringUtils.truncate("", 2, 10) = ""
599
     * StringUtils.truncate("abcdefghij", 0, 3) = "abc"
600
     * StringUtils.truncate("abcdefghij", 5, 6) = "fghij"
601
     * StringUtils.truncate("raspberry peach", 10, 15) = "peach"
602
     * StringUtils.truncate("abcdefghijklmno", 0, 10) = "abcdefghij"
603
     * StringUtils.truncate("abcdefghijklmno", -1, 10) = throws an IllegalArgumentException
604
     * StringUtils.truncate("abcdefghijklmno", Integer.MIN_VALUE, 10) = "abcdefghij"
605
     * StringUtils.truncate("abcdefghijklmno", Integer.MIN_VALUE, Integer.MAX_VALUE) = "abcdefghijklmno"
606
     * StringUtils.truncate("abcdefghijklmno", 0, Integer.MAX_VALUE) = "abcdefghijklmno"
607
     * StringUtils.truncate("abcdefghijklmno", 1, 10) = "bcdefghijk"
608
     * StringUtils.truncate("abcdefghijklmno", 2, 10) = "cdefghijkl"
609
     * StringUtils.truncate("abcdefghijklmno", 3, 10) = "defghijklm"
610
     * StringUtils.truncate("abcdefghijklmno", 4, 10) = "efghijklmn"
611
     * StringUtils.truncate("abcdefghijklmno", 5, 10) = "fghijklmno"
612
     * StringUtils.truncate("abcdefghijklmno", 5, 5) = "fghij"
613
     * StringUtils.truncate("abcdefghijklmno", 5, 3) = "fgh"
614
     * StringUtils.truncate("abcdefghijklmno", 10, 3) = "klm"
615
     * StringUtils.truncate("abcdefghijklmno", 10, Integer.MAX_VALUE) = "klmno"
616
     * StringUtils.truncate("abcdefghijklmno", 13, 1) = "n"
617
     * StringUtils.truncate("abcdefghijklmno", 13, Integer.MAX_VALUE) = "no"
618
     * StringUtils.truncate("abcdefghijklmno", 14, 1) = "o"
619
     * StringUtils.truncate("abcdefghijklmno", 14, Integer.MAX_VALUE) = "o"
620
     * StringUtils.truncate("abcdefghijklmno", 15, 1) = ""
621
     * StringUtils.truncate("abcdefghijklmno", 15, Integer.MAX_VALUE) = ""
622
     * StringUtils.truncate("abcdefghijklmno", Integer.MAX_VALUE, Integer.MAX_VALUE) = ""
623
     * StringUtils.truncate("abcdefghij", 3, -1) = throws an IllegalArgumentException
624
     * StringUtils.truncate("abcdefghij", -2, 4) = throws an IllegalArgumentException
625
     * </pre>
626
     *
627
     * @param str  the String to check, may be null
628
     * @param offset  left edge of source String
629
     * @param maxWidth  maximum length of result String, must be positive
630
     * @return truncated String, {@code null} if null String input
631
     * @since 3.5
632
     */
633
    public static String truncate(final String str, final int offset, final int maxWidth) {
634 2 1. truncate : changed conditional boundary → KILLED
2. truncate : negated conditional → KILLED
        if (offset < 0) {
635
            throw new IllegalArgumentException("offset cannot be negative");
636
        }
637 2 1. truncate : changed conditional boundary → KILLED
2. truncate : negated conditional → KILLED
        if (maxWidth < 0) {
638
            throw new IllegalArgumentException("maxWith cannot be negative");
639
        }
640 1 1. truncate : negated conditional → KILLED
        if (str == null) {
641 1 1. truncate : mutated return of Object value for org/apache/commons/lang3/StringUtils::truncate to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
642
        }
643 2 1. truncate : changed conditional boundary → SURVIVED
2. truncate : negated conditional → KILLED
        if (offset > str.length()) {
644 1 1. truncate : mutated return of Object value for org/apache/commons/lang3/StringUtils::truncate to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
645
        }
646 2 1. truncate : changed conditional boundary → SURVIVED
2. truncate : negated conditional → KILLED
        if (str.length() > maxWidth) {
647 4 1. truncate : changed conditional boundary → SURVIVED
2. truncate : Replaced integer addition with subtraction → KILLED
3. truncate : Replaced integer addition with subtraction → KILLED
4. truncate : negated conditional → KILLED
            final int ix = offset + maxWidth > str.length() ? str.length() : offset + maxWidth;
648 1 1. truncate : mutated return of Object value for org/apache/commons/lang3/StringUtils::truncate to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str.substring(offset, ix);
649
        }
650 1 1. truncate : mutated return of Object value for org/apache/commons/lang3/StringUtils::truncate to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(offset);
651
    }
652
653
    // Stripping
654
    //-----------------------------------------------------------------------
655
    /**
656
     * <p>Strips whitespace from the start and end of a String.</p>
657
     *
658
     * <p>This is similar to {@link #trim(String)} but removes whitespace.
659
     * Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
660
     *
661
     * <p>A {@code null} input String returns {@code null}.</p>
662
     *
663
     * <pre>
664
     * StringUtils.strip(null)     = null
665
     * StringUtils.strip("")       = ""
666
     * StringUtils.strip("   ")    = ""
667
     * StringUtils.strip("abc")    = "abc"
668
     * StringUtils.strip("  abc")  = "abc"
669
     * StringUtils.strip("abc  ")  = "abc"
670
     * StringUtils.strip(" abc ")  = "abc"
671
     * StringUtils.strip(" ab c ") = "ab c"
672
     * </pre>
673
     *
674
     * @param str  the String to remove whitespace from, may be null
675
     * @return the stripped String, {@code null} if null String input
676
     */
677
    public static String strip(final String str) {
678 1 1. strip : mutated return of Object value for org/apache/commons/lang3/StringUtils::strip to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return strip(str, null);
679
    }
680
681
    /**
682
     * <p>Strips whitespace from the start and end of a String  returning
683
     * {@code null} if the String is empty ("") after the strip.</p>
684
     *
685
     * <p>This is similar to {@link #trimToNull(String)} but removes whitespace.
686
     * Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
687
     *
688
     * <pre>
689
     * StringUtils.stripToNull(null)     = null
690
     * StringUtils.stripToNull("")       = null
691
     * StringUtils.stripToNull("   ")    = null
692
     * StringUtils.stripToNull("abc")    = "abc"
693
     * StringUtils.stripToNull("  abc")  = "abc"
694
     * StringUtils.stripToNull("abc  ")  = "abc"
695
     * StringUtils.stripToNull(" abc ")  = "abc"
696
     * StringUtils.stripToNull(" ab c ") = "ab c"
697
     * </pre>
698
     *
699
     * @param str  the String to be stripped, may be null
700
     * @return the stripped String,
701
     *  {@code null} if whitespace, empty or null String input
702
     * @since 2.0
703
     */
704
    public static String stripToNull(String str) {
705 1 1. stripToNull : negated conditional → KILLED
        if (str == null) {
706 1 1. stripToNull : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripToNull to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
707
        }
708
        str = strip(str, null);
709 2 1. stripToNull : negated conditional → KILLED
2. stripToNull : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripToNull to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.isEmpty() ? null : str;
710
    }
711
712
    /**
713
     * <p>Strips whitespace from the start and end of a String  returning
714
     * an empty String if {@code null} input.</p>
715
     *
716
     * <p>This is similar to {@link #trimToEmpty(String)} but removes whitespace.
717
     * Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
718
     *
719
     * <pre>
720
     * StringUtils.stripToEmpty(null)     = ""
721
     * StringUtils.stripToEmpty("")       = ""
722
     * StringUtils.stripToEmpty("   ")    = ""
723
     * StringUtils.stripToEmpty("abc")    = "abc"
724
     * StringUtils.stripToEmpty("  abc")  = "abc"
725
     * StringUtils.stripToEmpty("abc  ")  = "abc"
726
     * StringUtils.stripToEmpty(" abc ")  = "abc"
727
     * StringUtils.stripToEmpty(" ab c ") = "ab c"
728
     * </pre>
729
     *
730
     * @param str  the String to be stripped, may be null
731
     * @return the trimmed String, or an empty String if {@code null} input
732
     * @since 2.0
733
     */
734
    public static String stripToEmpty(final String str) {
735 2 1. stripToEmpty : negated conditional → KILLED
2. stripToEmpty : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripToEmpty to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str == null ? EMPTY : strip(str, null);
736
    }
737
738
    /**
739
     * <p>Strips any of a set of characters from the start and end of a String.
740
     * This is similar to {@link String#trim()} but allows the characters
741
     * to be stripped to be controlled.</p>
742
     *
743
     * <p>A {@code null} input String returns {@code null}.
744
     * An empty string ("") input returns the empty string.</p>
745
     *
746
     * <p>If the stripChars String is {@code null}, whitespace is
747
     * stripped as defined by {@link Character#isWhitespace(char)}.
748
     * Alternatively use {@link #strip(String)}.</p>
749
     *
750
     * <pre>
751
     * StringUtils.strip(null, *)          = null
752
     * StringUtils.strip("", *)            = ""
753
     * StringUtils.strip("abc", null)      = "abc"
754
     * StringUtils.strip("  abc", null)    = "abc"
755
     * StringUtils.strip("abc  ", null)    = "abc"
756
     * StringUtils.strip(" abc ", null)    = "abc"
757
     * StringUtils.strip("  abcyx", "xyz") = "  abc"
758
     * </pre>
759
     *
760
     * @param str  the String to remove characters from, may be null
761
     * @param stripChars  the characters to remove, null treated as whitespace
762
     * @return the stripped String, {@code null} if null String input
763
     */
764
    public static String strip(String str, final String stripChars) {
765 1 1. strip : negated conditional → KILLED
        if (isEmpty(str)) {
766 1 1. strip : mutated return of Object value for org/apache/commons/lang3/StringUtils::strip to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
767
        }
768
        str = stripStart(str, stripChars);
769 1 1. strip : mutated return of Object value for org/apache/commons/lang3/StringUtils::strip to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return stripEnd(str, stripChars);
770
    }
771
    
772
    /**
773
     * <p>Strips any of a set of characters from the start of a String.</p>
774
     *
775
     * <p>A {@code null} input String returns {@code null}.
776
     * An empty string ("") input returns the empty string.</p>
777
     *
778
     * <p>If the stripChars String is {@code null}, whitespace is
779
     * stripped as defined by {@link Character#isWhitespace(char)}.</p>
780
     *
781
     * <pre>
782
     * StringUtils.stripStart(null, *)          = null
783
     * StringUtils.stripStart("", *)            = ""
784
     * StringUtils.stripStart("abc", "")        = "abc"
785
     * StringUtils.stripStart("abc", null)      = "abc"
786
     * StringUtils.stripStart("  abc", null)    = "abc"
787
     * StringUtils.stripStart("abc  ", null)    = "abc  "
788
     * StringUtils.stripStart(" abc ", null)    = "abc "
789
     * StringUtils.stripStart("yxabc  ", "xyz") = "abc  "
790
     * </pre>
791
     *
792
     * @param str  the String to remove characters from, may be null
793
     * @param stripChars  the characters to remove, null treated as whitespace
794
     * @return the stripped String, {@code null} if null String input
795
     */
796
    public static String stripStart(final String str, final String stripChars) {
797
        int strLen;
798 2 1. stripStart : negated conditional → KILLED
2. stripStart : negated conditional → KILLED
        if (str == null || (strLen = str.length()) == 0) {
799 1 1. stripStart : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripStart to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
800
        }
801
        int start = 0;
802 1 1. stripStart : negated conditional → KILLED
        if (stripChars == null) {
803 2 1. stripStart : negated conditional → KILLED
2. stripStart : negated conditional → KILLED
            while (start != strLen && Character.isWhitespace(str.charAt(start))) {
804 1 1. stripStart : Changed increment from 1 to -1 → KILLED
                start++;
805
            }
806 1 1. stripStart : negated conditional → KILLED
        } else if (stripChars.isEmpty()) {
807 1 1. stripStart : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripStart to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
808
        } else {
809 2 1. stripStart : negated conditional → KILLED
2. stripStart : negated conditional → KILLED
            while (start != strLen && stripChars.indexOf(str.charAt(start)) != INDEX_NOT_FOUND) {
810 1 1. stripStart : Changed increment from 1 to -1 → KILLED
                start++;
811
            }
812
        }
813 1 1. stripStart : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripStart to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(start);
814
    }
815
816
    /**
817
     * <p>Strips any of a set of characters from the end of a String.</p>
818
     *
819
     * <p>A {@code null} input String returns {@code null}.
820
     * An empty string ("") input returns the empty string.</p>
821
     *
822
     * <p>If the stripChars String is {@code null}, whitespace is
823
     * stripped as defined by {@link Character#isWhitespace(char)}.</p>
824
     *
825
     * <pre>
826
     * StringUtils.stripEnd(null, *)          = null
827
     * StringUtils.stripEnd("", *)            = ""
828
     * StringUtils.stripEnd("abc", "")        = "abc"
829
     * StringUtils.stripEnd("abc", null)      = "abc"
830
     * StringUtils.stripEnd("  abc", null)    = "  abc"
831
     * StringUtils.stripEnd("abc  ", null)    = "abc"
832
     * StringUtils.stripEnd(" abc ", null)    = " abc"
833
     * StringUtils.stripEnd("  abcyx", "xyz") = "  abc"
834
     * StringUtils.stripEnd("120.00", ".0")   = "12"
835
     * </pre>
836
     *
837
     * @param str  the String to remove characters from, may be null
838
     * @param stripChars  the set of characters to remove, null treated as whitespace
839
     * @return the stripped String, {@code null} if null String input
840
     */
841
    public static String stripEnd(final String str, final String stripChars) {
842
        int end;
843 2 1. stripEnd : negated conditional → KILLED
2. stripEnd : negated conditional → KILLED
        if (str == null || (end = str.length()) == 0) {
844 1 1. stripEnd : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
845
        }
846
847 1 1. stripEnd : negated conditional → KILLED
        if (stripChars == null) {
848 3 1. stripEnd : Replaced integer subtraction with addition → KILLED
2. stripEnd : negated conditional → KILLED
3. stripEnd : negated conditional → KILLED
            while (end != 0 && Character.isWhitespace(str.charAt(end - 1))) {
849 1 1. stripEnd : Changed increment from -1 to 1 → KILLED
                end--;
850
            }
851 1 1. stripEnd : negated conditional → KILLED
        } else if (stripChars.isEmpty()) {
852 1 1. stripEnd : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
853
        } else {
854 3 1. stripEnd : Replaced integer subtraction with addition → KILLED
2. stripEnd : negated conditional → KILLED
3. stripEnd : negated conditional → KILLED
            while (end != 0 && stripChars.indexOf(str.charAt(end - 1)) != INDEX_NOT_FOUND) {
855 1 1. stripEnd : Changed increment from -1 to 1 → KILLED
                end--;
856
            }
857
        }
858 1 1. stripEnd : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(0, end);
859
    }
860
861
    // StripAll
862
    //-----------------------------------------------------------------------
863
    /**
864
     * <p>Strips whitespace from the start and end of every String in an array.
865
     * Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
866
     *
867
     * <p>A new array is returned each time, except for length zero.
868
     * A {@code null} array will return {@code null}.
869
     * An empty array will return itself.
870
     * A {@code null} array entry will be ignored.</p>
871
     *
872
     * <pre>
873
     * StringUtils.stripAll(null)             = null
874
     * StringUtils.stripAll([])               = []
875
     * StringUtils.stripAll(["abc", "  abc"]) = ["abc", "abc"]
876
     * StringUtils.stripAll(["abc  ", null])  = ["abc", null]
877
     * </pre>
878
     *
879
     * @param strs  the array to remove whitespace from, may be null
880
     * @return the stripped Strings, {@code null} if null array input
881
     */
882
    public static String[] stripAll(final String... strs) {
883 1 1. stripAll : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripAll to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return stripAll(strs, null);
884
    }
885
886
    /**
887
     * <p>Strips any of a set of characters from the start and end of every
888
     * String in an array.</p>
889
     * <p>Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
890
     *
891
     * <p>A new array is returned each time, except for length zero.
892
     * A {@code null} array will return {@code null}.
893
     * An empty array will return itself.
894
     * A {@code null} array entry will be ignored.
895
     * A {@code null} stripChars will strip whitespace as defined by
896
     * {@link Character#isWhitespace(char)}.</p>
897
     *
898
     * <pre>
899
     * StringUtils.stripAll(null, *)                = null
900
     * StringUtils.stripAll([], *)                  = []
901
     * StringUtils.stripAll(["abc", "  abc"], null) = ["abc", "abc"]
902
     * StringUtils.stripAll(["abc  ", null], null)  = ["abc", null]
903
     * StringUtils.stripAll(["abc  ", null], "yz")  = ["abc  ", null]
904
     * StringUtils.stripAll(["yabcz", null], "yz")  = ["abc", null]
905
     * </pre>
906
     *
907
     * @param strs  the array to remove characters from, may be null
908
     * @param stripChars  the characters to remove, null treated as whitespace
909
     * @return the stripped Strings, {@code null} if null array input
910
     */
911
    public static String[] stripAll(final String[] strs, final String stripChars) {
912
        int strsLen;
913 2 1. stripAll : negated conditional → KILLED
2. stripAll : negated conditional → KILLED
        if (strs == null || (strsLen = strs.length) == 0) {
914 1 1. stripAll : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripAll to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return strs;
915
        }
916
        final String[] newArr = new String[strsLen];
917 3 1. stripAll : changed conditional boundary → KILLED
2. stripAll : Changed increment from 1 to -1 → KILLED
3. stripAll : negated conditional → KILLED
        for (int i = 0; i < strsLen; i++) {
918
            newArr[i] = strip(strs[i], stripChars);
919
        }
920 1 1. stripAll : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripAll to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return newArr;
921
    }
922
923
    /**
924
     * <p>Removes diacritics (~= accents) from a string. The case will not be altered.</p>
925
     * <p>For instance, '&agrave;' will be replaced by 'a'.</p>
926
     * <p>Note that ligatures will be left as is.</p>
927
     *
928
     * <pre>
929
     * StringUtils.stripAccents(null)                = null
930
     * StringUtils.stripAccents("")                  = ""
931
     * StringUtils.stripAccents("control")           = "control"
932
     * StringUtils.stripAccents("&eacute;clair")     = "eclair"
933
     * </pre>
934
     *
935
     * @param input String to be stripped
936
     * @return input text with diacritics removed
937
     *
938
     * @since 3.0
939
     */
940
    // See also Lucene's ASCIIFoldingFilter (Lucene 2.9) that replaces accented characters by their unaccented equivalent (and uncommitted bug fix: https://issues.apache.org/jira/browse/LUCENE-1343?focusedCommentId=12858907&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12858907).
941
    public static String stripAccents(final String input) {
942 1 1. stripAccents : negated conditional → KILLED
        if(input == null) {
943 1 1. stripAccents : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripAccents to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
944
        }
945
        final Pattern pattern = Pattern.compile("\\p{InCombiningDiacriticalMarks}+");//$NON-NLS-1$
946
        final StringBuilder decomposed = new StringBuilder(Normalizer.normalize(input, Normalizer.Form.NFD));
947 1 1. stripAccents : removed call to org/apache/commons/lang3/StringUtils::convertRemainingAccentCharacters → KILLED
        convertRemainingAccentCharacters(decomposed);
948
        // Note that this doesn't correctly remove ligatures...
949 1 1. stripAccents : mutated return of Object value for org/apache/commons/lang3/StringUtils::stripAccents to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return pattern.matcher(decomposed).replaceAll(StringUtils.EMPTY);
950
    }
951
952
    private static void convertRemainingAccentCharacters(final StringBuilder decomposed) {
953 3 1. convertRemainingAccentCharacters : changed conditional boundary → KILLED
2. convertRemainingAccentCharacters : Changed increment from 1 to -1 → KILLED
3. convertRemainingAccentCharacters : negated conditional → KILLED
        for (int i = 0; i < decomposed.length(); i++) {
954 1 1. convertRemainingAccentCharacters : negated conditional → KILLED
            if (decomposed.charAt(i) == '\u0141') {
955
                decomposed.deleteCharAt(i);
956
                decomposed.insert(i, 'L');
957 1 1. convertRemainingAccentCharacters : negated conditional → KILLED
            } else if (decomposed.charAt(i) == '\u0142') {
958
                decomposed.deleteCharAt(i);
959
                decomposed.insert(i, 'l');
960
            }
961
        }
962
    }
963
964
    // Equals
965
    //-----------------------------------------------------------------------
966
    /**
967
     * <p>Compares two CharSequences, returning {@code true} if they represent
968
     * equal sequences of characters.</p>
969
     *
970
     * <p>{@code null}s are handled without exceptions. Two {@code null}
971
     * references are considered to be equal. The comparison is case sensitive.</p>
972
     *
973
     * <pre>
974
     * StringUtils.equals(null, null)   = true
975
     * StringUtils.equals(null, "abc")  = false
976
     * StringUtils.equals("abc", null)  = false
977
     * StringUtils.equals("abc", "abc") = true
978
     * StringUtils.equals("abc", "ABC") = false
979
     * </pre>
980
     *
981
     * @see Object#equals(Object)
982
     * @param cs1  the first CharSequence, may be {@code null}
983
     * @param cs2  the second CharSequence, may be {@code null}
984
     * @return {@code true} if the CharSequences are equal (case-sensitive), or both {@code null}
985
     * @since 3.0 Changed signature from equals(String, String) to equals(CharSequence, CharSequence)
986
     */
987
    public static boolean equals(final CharSequence cs1, final CharSequence cs2) {
988 1 1. equals : negated conditional → KILLED
        if (cs1 == cs2) {
989 1 1. equals : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return true;
990
        }
991 2 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
        if (cs1 == null || cs2 == null) {
992 1 1. equals : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
993
        }
994 1 1. equals : negated conditional → KILLED
        if (cs1.length() != cs2.length()) {
995 1 1. equals : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
996
        }
997 2 1. equals : negated conditional → KILLED
2. equals : negated conditional → KILLED
        if (cs1 instanceof String && cs2 instanceof String) {
998 1 1. equals : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return cs1.equals(cs2);
999
        }
1000 1 1. equals : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.regionMatches(cs1, false, 0, cs2, 0, cs1.length());
1001
    }
1002
1003
    /**
1004
     * <p>Compares two CharSequences, returning {@code true} if they represent
1005
     * equal sequences of characters, ignoring case.</p>
1006
     *
1007
     * <p>{@code null}s are handled without exceptions. Two {@code null}
1008
     * references are considered equal. Comparison is case insensitive.</p>
1009
     *
1010
     * <pre>
1011
     * StringUtils.equalsIgnoreCase(null, null)   = true
1012
     * StringUtils.equalsIgnoreCase(null, "abc")  = false
1013
     * StringUtils.equalsIgnoreCase("abc", null)  = false
1014
     * StringUtils.equalsIgnoreCase("abc", "abc") = true
1015
     * StringUtils.equalsIgnoreCase("abc", "ABC") = true
1016
     * </pre>
1017
     *
1018
     * @param str1  the first CharSequence, may be null
1019
     * @param str2  the second CharSequence, may be null
1020
     * @return {@code true} if the CharSequence are equal, case insensitive, or
1021
     *  both {@code null}
1022
     * @since 3.0 Changed signature from equalsIgnoreCase(String, String) to equalsIgnoreCase(CharSequence, CharSequence)
1023
     */
1024
    public static boolean equalsIgnoreCase(final CharSequence str1, final CharSequence str2) {
1025 2 1. equalsIgnoreCase : negated conditional → KILLED
2. equalsIgnoreCase : negated conditional → KILLED
        if (str1 == null || str2 == null) {
1026 2 1. equalsIgnoreCase : negated conditional → KILLED
2. equalsIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return str1 == str2;
1027 1 1. equalsIgnoreCase : negated conditional → KILLED
        } else if (str1 == str2) {
1028 1 1. equalsIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return true;
1029 1 1. equalsIgnoreCase : negated conditional → KILLED
        } else if (str1.length() != str2.length()) {
1030 1 1. equalsIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
1031
        } else {
1032 1 1. equalsIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return CharSequenceUtils.regionMatches(str1, true, 0, str2, 0, str1.length());
1033
        }
1034
    }
1035
1036
    // Compare
1037
    //-----------------------------------------------------------------------
1038
    /**
1039
     * <p>Compare two Strings lexicographically, as per {@link String#compareTo(String)}, returning :</p>
1040
     * <ul>
1041
     *  <li>{@code int = 0}, if {@code str1} is equal to {@code str2} (or both {@code null})</li>
1042
     *  <li>{@code int < 0}, if {@code str1} is less than {@code str2}</li>
1043
     *  <li>{@code int > 0}, if {@code str1} is greater than {@code str2}</li>
1044
     * </ul>
1045
     *
1046
     * <p>This is a {@code null} safe version of :</p>
1047
     * <blockquote><pre>str1.compareTo(str2)</pre></blockquote>
1048
     *
1049
     * <p>{@code null} value is considered less than non-{@code null} value.
1050
     * Two {@code null} references are considered equal.</p>
1051
     *
1052
     * <pre>
1053
     * StringUtils.compare(null, null)   = 0
1054
     * StringUtils.compare(null , "a")   &lt; 0
1055
     * StringUtils.compare("a", null)    &gt; 0
1056
     * StringUtils.compare("abc", "abc") = 0
1057
     * StringUtils.compare("a", "b")     &lt; 0
1058
     * StringUtils.compare("b", "a")     &gt; 0
1059
     * StringUtils.compare("a", "B")     &gt; 0
1060
     * StringUtils.compare("ab", "abc")  &lt; 0
1061
     * </pre>
1062
     *
1063
     * @see #compare(String, String, boolean)
1064
     * @see String#compareTo(String)
1065
     * @param str1  the String to compare from
1066
     * @param str2  the String to compare to
1067
     * @return &lt; 0, 0, &gt; 0, if {@code str1} is respectively less, equal ou greater than {@code str2}
1068
     * @since 3.5
1069
     */
1070
    public static int compare(final String str1, final String str2) {
1071 1 1. compare : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return compare(str1, str2, true);
1072
    }
1073
1074
    /**
1075
     * <p>Compare two Strings lexicographically, as per {@link String#compareTo(String)}, returning :</p>
1076
     * <ul>
1077
     *  <li>{@code int = 0}, if {@code str1} is equal to {@code str2} (or both {@code null})</li>
1078
     *  <li>{@code int < 0}, if {@code str1} is less than {@code str2}</li>
1079
     *  <li>{@code int > 0}, if {@code str1} is greater than {@code str2}</li>
1080
     * </ul>
1081
     *
1082
     * <p>This is a {@code null} safe version of :</p>
1083
     * <blockquote><pre>str1.compareTo(str2)</pre></blockquote>
1084
     *
1085
     * <p>{@code null} inputs are handled according to the {@code nullIsLess} parameter.
1086
     * Two {@code null} references are considered equal.</p>
1087
     *
1088
     * <pre>
1089
     * StringUtils.compare(null, null, *)     = 0
1090
     * StringUtils.compare(null , "a", true)  &lt; 0
1091
     * StringUtils.compare(null , "a", false) &gt; 0
1092
     * StringUtils.compare("a", null, true)   &gt; 0
1093
     * StringUtils.compare("a", null, false)  &lt; 0
1094
     * StringUtils.compare("abc", "abc", *)   = 0
1095
     * StringUtils.compare("a", "b", *)       &lt; 0
1096
     * StringUtils.compare("b", "a", *)       &gt; 0
1097
     * StringUtils.compare("a", "B", *)       &gt; 0
1098
     * StringUtils.compare("ab", "abc", *)    &lt; 0
1099
     * </pre>
1100
     *
1101
     * @see String#compareTo(String)
1102
     * @param str1  the String to compare from
1103
     * @param str2  the String to compare to
1104
     * @param nullIsLess  whether consider {@code null} value less than non-{@code null} value
1105
     * @return &lt; 0, 0, &gt; 0, if {@code str1} is respectively less, equal ou greater than {@code str2}
1106
     * @since 3.5
1107
     */
1108
    public static int compare(final String str1, final String str2, final boolean nullIsLess) {
1109 1 1. compare : negated conditional → KILLED
        if (str1 == str2) {
1110 1 1. compare : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return 0;
1111
        }
1112 1 1. compare : negated conditional → KILLED
        if (str1 == null) {
1113 2 1. compare : negated conditional → KILLED
2. compare : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return nullIsLess ? -1 : 1;
1114
        }
1115 1 1. compare : negated conditional → KILLED
        if (str2 == null) {
1116 2 1. compare : negated conditional → KILLED
2. compare : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return nullIsLess ? 1 : - 1;
1117
        }
1118 1 1. compare : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return str1.compareTo(str2);
1119
    }
1120
1121
    /**
1122
     * <p>Compare two Strings lexicographically, ignoring case differences,
1123
     * as per {@link String#compareToIgnoreCase(String)}, returning :</p>
1124
     * <ul>
1125
     *  <li>{@code int = 0}, if {@code str1} is equal to {@code str2} (or both {@code null})</li>
1126
     *  <li>{@code int < 0}, if {@code str1} is less than {@code str2}</li>
1127
     *  <li>{@code int > 0}, if {@code str1} is greater than {@code str2}</li>
1128
     * </ul>
1129
     *
1130
     * <p>This is a {@code null} safe version of :</p>
1131
     * <blockquote><pre>str1.compareToIgnoreCase(str2)</pre></blockquote>
1132
     *
1133
     * <p>{@code null} value is considered less than non-{@code null} value.
1134
     * Two {@code null} references are considered equal.
1135
     * Comparison is case insensitive.</p>
1136
     *
1137
     * <pre>
1138
     * StringUtils.compareIgnoreCase(null, null)   = 0
1139
     * StringUtils.compareIgnoreCase(null , "a")   &lt; 0
1140
     * StringUtils.compareIgnoreCase("a", null)    &gt; 0
1141
     * StringUtils.compareIgnoreCase("abc", "abc") = 0
1142
     * StringUtils.compareIgnoreCase("abc", "ABC") = 0
1143
     * StringUtils.compareIgnoreCase("a", "b")     &lt; 0
1144
     * StringUtils.compareIgnoreCase("b", "a")     &gt; 0
1145
     * StringUtils.compareIgnoreCase("a", "B")     &lt; 0
1146
     * StringUtils.compareIgnoreCase("A", "b")     &lt; 0
1147
     * StringUtils.compareIgnoreCase("ab", "ABC")  &lt; 0
1148
     * </pre>
1149
     *
1150
     * @see #compareIgnoreCase(String, String, boolean)
1151
     * @see String#compareToIgnoreCase(String)
1152
     * @param str1  the String to compare from
1153
     * @param str2  the String to compare to
1154
     * @return &lt; 0, 0, &gt; 0, if {@code str1} is respectively less, equal ou greater than {@code str2},
1155
     *          ignoring case differences.
1156
     * @since 3.5
1157
     */
1158
    public static int compareIgnoreCase(final String str1, final String str2) {
1159 1 1. compareIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return compareIgnoreCase(str1, str2, true);
1160
    }
1161
1162
    /**
1163
     * <p>Compare two Strings lexicographically, ignoring case differences,
1164
     * as per {@link String#compareToIgnoreCase(String)}, returning :</p>
1165
     * <ul>
1166
     *  <li>{@code int = 0}, if {@code str1} is equal to {@code str2} (or both {@code null})</li>
1167
     *  <li>{@code int < 0}, if {@code str1} is less than {@code str2}</li>
1168
     *  <li>{@code int > 0}, if {@code str1} is greater than {@code str2}</li>
1169
     * </ul>
1170
     *
1171
     * <p>This is a {@code null} safe version of :</p>
1172
     * <blockquote><pre>str1.compareToIgnoreCase(str2)</pre></blockquote>
1173
     *
1174
     * <p>{@code null} inputs are handled according to the {@code nullIsLess} parameter.
1175
     * Two {@code null} references are considered equal.
1176
     * Comparison is case insensitive.</p>
1177
     *
1178
     * <pre>
1179
     * StringUtils.compareIgnoreCase(null, null, *)     = 0
1180
     * StringUtils.compareIgnoreCase(null , "a", true)  &lt; 0
1181
     * StringUtils.compareIgnoreCase(null , "a", false) &gt; 0
1182
     * StringUtils.compareIgnoreCase("a", null, true)   &gt; 0
1183
     * StringUtils.compareIgnoreCase("a", null, false)  &lt; 0
1184
     * StringUtils.compareIgnoreCase("abc", "abc", *)   = 0
1185
     * StringUtils.compareIgnoreCase("abc", "ABC", *)   = 0
1186
     * StringUtils.compareIgnoreCase("a", "b", *)       &lt; 0
1187
     * StringUtils.compareIgnoreCase("b", "a", *)       &gt; 0
1188
     * StringUtils.compareIgnoreCase("a", "B", *)       &lt; 0
1189
     * StringUtils.compareIgnoreCase("A", "b", *)       &lt; 0
1190
     * StringUtils.compareIgnoreCase("ab", "abc", *)    &lt; 0
1191
     * </pre>
1192
     *
1193
     * @see String#compareToIgnoreCase(String)
1194
     * @param str1  the String to compare from
1195
     * @param str2  the String to compare to
1196
     * @param nullIsLess  whether consider {@code null} value less than non-{@code null} value
1197
     * @return &lt; 0, 0, &gt; 0, if {@code str1} is respectively less, equal ou greater than {@code str2},
1198
     *          ignoring case differences.
1199
     * @since 3.5
1200
     */
1201
    public static int compareIgnoreCase(final String str1, final String str2, final boolean nullIsLess) {
1202 1 1. compareIgnoreCase : negated conditional → KILLED
        if (str1 == str2) {
1203 1 1. compareIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return 0;
1204
        }
1205 1 1. compareIgnoreCase : negated conditional → KILLED
        if (str1 == null) {
1206 2 1. compareIgnoreCase : negated conditional → KILLED
2. compareIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return nullIsLess ? -1 : 1;
1207
        }
1208 1 1. compareIgnoreCase : negated conditional → KILLED
        if (str2 == null) {
1209 2 1. compareIgnoreCase : negated conditional → KILLED
2. compareIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return nullIsLess ? 1 : - 1;
1210
        }
1211 1 1. compareIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return str1.compareToIgnoreCase(str2);
1212
    }
1213
1214
    /**
1215
     * <p>Compares given <code>string</code> to a CharSequences vararg of <code>searchStrings</code>,
1216
     * returning {@code true} if the <code>string</code> is equal to any of the <code>searchStrings</code>.</p>
1217
     *
1218
     * <pre>
1219
     * StringUtils.equalsAny(null, (CharSequence[]) null) = false
1220
     * StringUtils.equalsAny(null, null, null)    = true
1221
     * StringUtils.equalsAny(null, "abc", "def")  = false
1222
     * StringUtils.equalsAny("abc", null, "def")  = false
1223
     * StringUtils.equalsAny("abc", "abc", "def") = true
1224
     * StringUtils.equalsAny("abc", "ABC", "DEF") = false
1225
     * </pre>
1226
     *
1227
     * @param string to compare, may be {@code null}.
1228
     * @param searchStrings a vararg of strings, may be {@code null}.
1229
     * @return {@code true} if the string is equal (case-sensitive) to any other element of <code>searchStrings</code>;
1230
     * {@code false} if <code>searchStrings</code> is null or contains no matches.
1231
     * @since 3.5
1232
     */
1233
    public static boolean equalsAny(final CharSequence string, final CharSequence... searchStrings) {
1234 1 1. equalsAny : negated conditional → KILLED
        if (ArrayUtils.isNotEmpty(searchStrings)) {
1235 3 1. equalsAny : changed conditional boundary → KILLED
2. equalsAny : Changed increment from 1 to -1 → KILLED
3. equalsAny : negated conditional → KILLED
            for (final CharSequence next : searchStrings) {
1236 1 1. equalsAny : negated conditional → KILLED
                if (equals(string, next)) {
1237 1 1. equalsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                    return true;
1238
                }
1239
            }
1240
        }
1241 1 1. equalsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
1242
    }
1243
1244
1245
    /**
1246
     * <p>Compares given <code>string</code> to a CharSequences vararg of <code>searchStrings</code>,
1247
     * returning {@code true} if the <code>string</code> is equal to any of the <code>searchStrings</code>, ignoring case.</p>
1248
     *
1249
     * <pre>
1250
     * StringUtils.equalsAnyIgnoreCase(null, (CharSequence[]) null) = false
1251
     * StringUtils.equalsAnyIgnoreCase(null, null, null)    = true
1252
     * StringUtils.equalsAnyIgnoreCase(null, "abc", "def")  = false
1253
     * StringUtils.equalsAnyIgnoreCase("abc", null, "def")  = false
1254
     * StringUtils.equalsAnyIgnoreCase("abc", "abc", "def") = true
1255
     * StringUtils.equalsAnyIgnoreCase("abc", "ABC", "DEF") = true
1256
     * </pre>
1257
     *
1258
     * @param string to compare, may be {@code null}.
1259
     * @param searchStrings a vararg of strings, may be {@code null}.
1260
     * @return {@code true} if the string is equal (case-insensitive) to any other element of <code>searchStrings</code>;
1261
     * {@code false} if <code>searchStrings</code> is null or contains no matches.
1262
     * @since 3.5
1263
     */
1264
    public static boolean equalsAnyIgnoreCase(final CharSequence string, final CharSequence...searchStrings) {
1265 1 1. equalsAnyIgnoreCase : negated conditional → KILLED
        if (ArrayUtils.isNotEmpty(searchStrings)) {
1266 3 1. equalsAnyIgnoreCase : changed conditional boundary → KILLED
2. equalsAnyIgnoreCase : Changed increment from 1 to -1 → KILLED
3. equalsAnyIgnoreCase : negated conditional → KILLED
            for (final CharSequence next : searchStrings) {
1267 1 1. equalsAnyIgnoreCase : negated conditional → KILLED
                if (equalsIgnoreCase(string, next)) {
1268 1 1. equalsAnyIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                    return true;
1269
                }
1270
            }
1271
        }
1272 1 1. equalsAnyIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
1273
    }
1274
1275
    // IndexOf
1276
    //-----------------------------------------------------------------------
1277
    /**
1278
     * <p>Finds the first index within a CharSequence, handling {@code null}.
1279
     * This method uses {@link String#indexOf(int, int)} if possible.</p>
1280
     *
1281
     * <p>A {@code null} or empty ("") CharSequence will return {@code INDEX_NOT_FOUND (-1)}.</p>
1282
     *
1283
     * <pre>
1284
     * StringUtils.indexOf(null, *)         = -1
1285
     * StringUtils.indexOf("", *)           = -1
1286
     * StringUtils.indexOf("aabaabaa", 'a') = 0
1287
     * StringUtils.indexOf("aabaabaa", 'b') = 2
1288
     * </pre>
1289
     *
1290
     * @param seq  the CharSequence to check, may be null
1291
     * @param searchChar  the character to find
1292
     * @return the first index of the search character,
1293
     *  -1 if no match or {@code null} string input
1294
     * @since 2.0
1295
     * @since 3.0 Changed signature from indexOf(String, int) to indexOf(CharSequence, int)
1296
     */
1297
    public static int indexOf(final CharSequence seq, final int searchChar) {
1298 1 1. indexOf : negated conditional → KILLED
        if (isEmpty(seq)) {
1299 1 1. indexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1300
        }
1301 1 1. indexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.indexOf(seq, searchChar, 0);
1302
    }
1303
1304
    /**
1305
     * <p>Finds the first index within a CharSequence from a start position,
1306
     * handling {@code null}.
1307
     * This method uses {@link String#indexOf(int, int)} if possible.</p>
1308
     *
1309
     * <p>A {@code null} or empty ("") CharSequence will return {@code (INDEX_NOT_FOUND) -1}.
1310
     * A negative start position is treated as zero.
1311
     * A start position greater than the string length returns {@code -1}.</p>
1312
     *
1313
     * <pre>
1314
     * StringUtils.indexOf(null, *, *)          = -1
1315
     * StringUtils.indexOf("", *, *)            = -1
1316
     * StringUtils.indexOf("aabaabaa", 'b', 0)  = 2
1317
     * StringUtils.indexOf("aabaabaa", 'b', 3)  = 5
1318
     * StringUtils.indexOf("aabaabaa", 'b', 9)  = -1
1319
     * StringUtils.indexOf("aabaabaa", 'b', -1) = 2
1320
     * </pre>
1321
     *
1322
     * @param seq  the CharSequence to check, may be null
1323
     * @param searchChar  the character to find
1324
     * @param startPos  the start position, negative treated as zero
1325
     * @return the first index of the search character (always &ge; startPos),
1326
     *  -1 if no match or {@code null} string input
1327
     * @since 2.0
1328
     * @since 3.0 Changed signature from indexOf(String, int, int) to indexOf(CharSequence, int, int)
1329
     */
1330
    public static int indexOf(final CharSequence seq, final int searchChar, final int startPos) {
1331 1 1. indexOf : negated conditional → KILLED
        if (isEmpty(seq)) {
1332 1 1. indexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1333
        }
1334 1 1. indexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.indexOf(seq, searchChar, startPos);
1335
    }
1336
1337
    /**
1338
     * <p>Finds the first index within a CharSequence, handling {@code null}.
1339
     * This method uses {@link String#indexOf(String, int)} if possible.</p>
1340
     *
1341
     * <p>A {@code null} CharSequence will return {@code -1}.</p>
1342
     *
1343
     * <pre>
1344
     * StringUtils.indexOf(null, *)          = -1
1345
     * StringUtils.indexOf(*, null)          = -1
1346
     * StringUtils.indexOf("", "")           = 0
1347
     * StringUtils.indexOf("", *)            = -1 (except when * = "")
1348
     * StringUtils.indexOf("aabaabaa", "a")  = 0
1349
     * StringUtils.indexOf("aabaabaa", "b")  = 2
1350
     * StringUtils.indexOf("aabaabaa", "ab") = 1
1351
     * StringUtils.indexOf("aabaabaa", "")   = 0
1352
     * </pre>
1353
     *
1354
     * @param seq  the CharSequence to check, may be null
1355
     * @param searchSeq  the CharSequence to find, may be null
1356
     * @return the first index of the search CharSequence,
1357
     *  -1 if no match or {@code null} string input
1358
     * @since 2.0
1359
     * @since 3.0 Changed signature from indexOf(String, String) to indexOf(CharSequence, CharSequence)
1360
     */
1361
    public static int indexOf(final CharSequence seq, final CharSequence searchSeq) {
1362 2 1. indexOf : negated conditional → KILLED
2. indexOf : negated conditional → KILLED
        if (seq == null || searchSeq == null) {
1363 1 1. indexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1364
        }
1365 1 1. indexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.indexOf(seq, searchSeq, 0);
1366
    }
1367
1368
    /**
1369
     * <p>Finds the first index within a CharSequence, handling {@code null}.
1370
     * This method uses {@link String#indexOf(String, int)} if possible.</p>
1371
     *
1372
     * <p>A {@code null} CharSequence will return {@code -1}.
1373
     * A negative start position is treated as zero.
1374
     * An empty ("") search CharSequence always matches.
1375
     * A start position greater than the string length only matches
1376
     * an empty search CharSequence.</p>
1377
     *
1378
     * <pre>
1379
     * StringUtils.indexOf(null, *, *)          = -1
1380
     * StringUtils.indexOf(*, null, *)          = -1
1381
     * StringUtils.indexOf("", "", 0)           = 0
1382
     * StringUtils.indexOf("", *, 0)            = -1 (except when * = "")
1383
     * StringUtils.indexOf("aabaabaa", "a", 0)  = 0
1384
     * StringUtils.indexOf("aabaabaa", "b", 0)  = 2
1385
     * StringUtils.indexOf("aabaabaa", "ab", 0) = 1
1386
     * StringUtils.indexOf("aabaabaa", "b", 3)  = 5
1387
     * StringUtils.indexOf("aabaabaa", "b", 9)  = -1
1388
     * StringUtils.indexOf("aabaabaa", "b", -1) = 2
1389
     * StringUtils.indexOf("aabaabaa", "", 2)   = 2
1390
     * StringUtils.indexOf("abc", "", 9)        = 3
1391
     * </pre>
1392
     *
1393
     * @param seq  the CharSequence to check, may be null
1394
     * @param searchSeq  the CharSequence to find, may be null
1395
     * @param startPos  the start position, negative treated as zero
1396
     * @return the first index of the search CharSequence (always &ge; startPos),
1397
     *  -1 if no match or {@code null} string input
1398
     * @since 2.0
1399
     * @since 3.0 Changed signature from indexOf(String, String, int) to indexOf(CharSequence, CharSequence, int)
1400
     */
1401
    public static int indexOf(final CharSequence seq, final CharSequence searchSeq, final int startPos) {
1402 2 1. indexOf : negated conditional → KILLED
2. indexOf : negated conditional → KILLED
        if (seq == null || searchSeq == null) {
1403 1 1. indexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1404
        }
1405 1 1. indexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.indexOf(seq, searchSeq, startPos);
1406
    }
1407
1408
    /**
1409
     * <p>Finds the n-th index within a CharSequence, handling {@code null}.
1410
     * This method uses {@link String#indexOf(String)} if possible.</p>
1411
     * <p><b>Note:</b> The code starts looking for a match at the start of the target,
1412
     * incrementing the starting index by one after each successful match
1413
     * (unless {@code searchStr} is an empty string in which case the position
1414
     * is never incremented and {@code 0} is returned immediately).
1415
     * This means that matches may overlap.</p>
1416
     * <p>A {@code null} CharSequence will return {@code -1}.</p>
1417
     *
1418
     * <pre>
1419
     * StringUtils.ordinalIndexOf(null, *, *)          = -1
1420
     * StringUtils.ordinalIndexOf(*, null, *)          = -1
1421
     * StringUtils.ordinalIndexOf("", "", *)           = 0
1422
     * StringUtils.ordinalIndexOf("aabaabaa", "a", 1)  = 0
1423
     * StringUtils.ordinalIndexOf("aabaabaa", "a", 2)  = 1
1424
     * StringUtils.ordinalIndexOf("aabaabaa", "b", 1)  = 2
1425
     * StringUtils.ordinalIndexOf("aabaabaa", "b", 2)  = 5
1426
     * StringUtils.ordinalIndexOf("aabaabaa", "ab", 1) = 1
1427
     * StringUtils.ordinalIndexOf("aabaabaa", "ab", 2) = 4
1428
     * StringUtils.ordinalIndexOf("aabaabaa", "", 1)   = 0
1429
     * StringUtils.ordinalIndexOf("aabaabaa", "", 2)   = 0
1430
     * </pre>
1431
     *
1432
     * <p>Matches may overlap:</p>
1433
     * <pre>
1434
     * StringUtils.ordinalIndexOf("ababab","aba", 1)   = 0
1435
     * StringUtils.ordinalIndexOf("ababab","aba", 2)   = 2
1436
     * StringUtils.ordinalIndexOf("ababab","aba", 3)   = -1
1437
     *
1438
     * StringUtils.ordinalIndexOf("abababab", "abab", 1) = 0
1439
     * StringUtils.ordinalIndexOf("abababab", "abab", 2) = 2
1440
     * StringUtils.ordinalIndexOf("abababab", "abab", 3) = 4
1441
     * StringUtils.ordinalIndexOf("abababab", "abab", 4) = -1
1442
     * </pre>
1443
     *
1444
     * <p>Note that 'head(CharSequence str, int n)' may be implemented as: </p>
1445
     *
1446
     * <pre>
1447
     *   str.substring(0, lastOrdinalIndexOf(str, "\n", n))
1448
     * </pre>
1449
     *
1450
     * @param str  the CharSequence to check, may be null
1451
     * @param searchStr  the CharSequence to find, may be null
1452
     * @param ordinal  the n-th {@code searchStr} to find
1453
     * @return the n-th index of the search CharSequence,
1454
     *  {@code -1} ({@code INDEX_NOT_FOUND}) if no match or {@code null} string input
1455
     * @since 2.1
1456
     * @since 3.0 Changed signature from ordinalIndexOf(String, String, int) to ordinalIndexOf(CharSequence, CharSequence, int)
1457
     */
1458
    public static int ordinalIndexOf(final CharSequence str, final CharSequence searchStr, final int ordinal) {
1459 1 1. ordinalIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return ordinalIndexOf(str, searchStr, ordinal, false);
1460
    }
1461
1462
    /**
1463
     * <p>Finds the n-th index within a String, handling {@code null}.
1464
     * This method uses {@link String#indexOf(String)} if possible.</p>
1465
     * <p>Note that matches may overlap<p>
1466
     *
1467
     * <p>A {@code null} CharSequence will return {@code -1}.</p>
1468
     *
1469
     * @param str  the CharSequence to check, may be null
1470
     * @param searchStr  the CharSequence to find, may be null
1471
     * @param ordinal  the n-th {@code searchStr} to find, overlapping matches are allowed.
1472
     * @param lastIndex true if lastOrdinalIndexOf() otherwise false if ordinalIndexOf()
1473
     * @return the n-th index of the search CharSequence,
1474
     *  {@code -1} ({@code INDEX_NOT_FOUND}) if no match or {@code null} string input
1475
     */
1476
    // Shared code between ordinalIndexOf(String,String,int) and lastOrdinalIndexOf(String,String,int)
1477
    private static int ordinalIndexOf(final CharSequence str, final CharSequence searchStr, final int ordinal, final boolean lastIndex) {
1478 4 1. ordinalIndexOf : changed conditional boundary → KILLED
2. ordinalIndexOf : negated conditional → KILLED
3. ordinalIndexOf : negated conditional → KILLED
4. ordinalIndexOf : negated conditional → KILLED
        if (str == null || searchStr == null || ordinal <= 0) {
1479 1 1. ordinalIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1480
        }
1481 1 1. ordinalIndexOf : negated conditional → KILLED
        if (searchStr.length() == 0) {
1482 2 1. ordinalIndexOf : negated conditional → KILLED
2. ordinalIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return lastIndex ? str.length() : 0;
1483
        }
1484
        int found = 0;
1485
        // set the initial index beyond the end of the string
1486
        // this is to allow for the initial index decrement/increment
1487 1 1. ordinalIndexOf : negated conditional → KILLED
        int index = lastIndex ? str.length() : INDEX_NOT_FOUND;
1488
        do {
1489 1 1. ordinalIndexOf : negated conditional → KILLED
            if (lastIndex) {
1490 1 1. ordinalIndexOf : Replaced integer subtraction with addition → KILLED
                index = CharSequenceUtils.lastIndexOf(str, searchStr, index - 1); // step backwards thru string
1491
            } else {
1492 1 1. ordinalIndexOf : Replaced integer addition with subtraction → KILLED
                index = CharSequenceUtils.indexOf(str, searchStr, index + 1); // step forwards through string
1493
            }
1494 2 1. ordinalIndexOf : changed conditional boundary → KILLED
2. ordinalIndexOf : negated conditional → KILLED
            if (index < 0) {
1495 1 1. ordinalIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return index;
1496
            }
1497 1 1. ordinalIndexOf : Changed increment from 1 to -1 → KILLED
            found++;
1498 2 1. ordinalIndexOf : changed conditional boundary → KILLED
2. ordinalIndexOf : negated conditional → KILLED
        } while (found < ordinal);
1499 1 1. ordinalIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return index;
1500
    }
1501
1502
    /**
1503
     * <p>Case in-sensitive find of the first index within a CharSequence.</p>
1504
     *
1505
     * <p>A {@code null} CharSequence will return {@code -1}.
1506
     * A negative start position is treated as zero.
1507
     * An empty ("") search CharSequence always matches.
1508
     * A start position greater than the string length only matches
1509
     * an empty search CharSequence.</p>
1510
     *
1511
     * <pre>
1512
     * StringUtils.indexOfIgnoreCase(null, *)          = -1
1513
     * StringUtils.indexOfIgnoreCase(*, null)          = -1
1514
     * StringUtils.indexOfIgnoreCase("", "")           = 0
1515
     * StringUtils.indexOfIgnoreCase("aabaabaa", "a")  = 0
1516
     * StringUtils.indexOfIgnoreCase("aabaabaa", "b")  = 2
1517
     * StringUtils.indexOfIgnoreCase("aabaabaa", "ab") = 1
1518
     * </pre>
1519
     *
1520
     * @param str  the CharSequence to check, may be null
1521
     * @param searchStr  the CharSequence to find, may be null
1522
     * @return the first index of the search CharSequence,
1523
     *  -1 if no match or {@code null} string input
1524
     * @since 2.5
1525
     * @since 3.0 Changed signature from indexOfIgnoreCase(String, String) to indexOfIgnoreCase(CharSequence, CharSequence)
1526
     */
1527
    public static int indexOfIgnoreCase(final CharSequence str, final CharSequence searchStr) {
1528 1 1. indexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return indexOfIgnoreCase(str, searchStr, 0);
1529
    }
1530
1531
    /**
1532
     * <p>Case in-sensitive find of the first index within a CharSequence
1533
     * from the specified position.</p>
1534
     *
1535
     * <p>A {@code null} CharSequence will return {@code -1}.
1536
     * A negative start position is treated as zero.
1537
     * An empty ("") search CharSequence always matches.
1538
     * A start position greater than the string length only matches
1539
     * an empty search CharSequence.</p>
1540
     *
1541
     * <pre>
1542
     * StringUtils.indexOfIgnoreCase(null, *, *)          = -1
1543
     * StringUtils.indexOfIgnoreCase(*, null, *)          = -1
1544
     * StringUtils.indexOfIgnoreCase("", "", 0)           = 0
1545
     * StringUtils.indexOfIgnoreCase("aabaabaa", "A", 0)  = 0
1546
     * StringUtils.indexOfIgnoreCase("aabaabaa", "B", 0)  = 2
1547
     * StringUtils.indexOfIgnoreCase("aabaabaa", "AB", 0) = 1
1548
     * StringUtils.indexOfIgnoreCase("aabaabaa", "B", 3)  = 5
1549
     * StringUtils.indexOfIgnoreCase("aabaabaa", "B", 9)  = -1
1550
     * StringUtils.indexOfIgnoreCase("aabaabaa", "B", -1) = 2
1551
     * StringUtils.indexOfIgnoreCase("aabaabaa", "", 2)   = 2
1552
     * StringUtils.indexOfIgnoreCase("abc", "", 9)        = -1
1553
     * </pre>
1554
     *
1555
     * @param str  the CharSequence to check, may be null
1556
     * @param searchStr  the CharSequence to find, may be null
1557
     * @param startPos  the start position, negative treated as zero
1558
     * @return the first index of the search CharSequence (always &ge; startPos),
1559
     *  -1 if no match or {@code null} string input
1560
     * @since 2.5
1561
     * @since 3.0 Changed signature from indexOfIgnoreCase(String, String, int) to indexOfIgnoreCase(CharSequence, CharSequence, int)
1562
     */
1563
    public static int indexOfIgnoreCase(final CharSequence str, final CharSequence searchStr, int startPos) {
1564 2 1. indexOfIgnoreCase : negated conditional → KILLED
2. indexOfIgnoreCase : negated conditional → KILLED
        if (str == null || searchStr == null) {
1565 1 1. indexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1566
        }
1567 2 1. indexOfIgnoreCase : changed conditional boundary → SURVIVED
2. indexOfIgnoreCase : negated conditional → KILLED
        if (startPos < 0) {
1568
            startPos = 0;
1569
        }
1570 2 1. indexOfIgnoreCase : Replaced integer subtraction with addition → SURVIVED
2. indexOfIgnoreCase : Replaced integer addition with subtraction → KILLED
        final int endLimit = str.length() - searchStr.length() + 1;
1571 2 1. indexOfIgnoreCase : changed conditional boundary → SURVIVED
2. indexOfIgnoreCase : negated conditional → KILLED
        if (startPos > endLimit) {
1572 1 1. indexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1573
        }
1574 1 1. indexOfIgnoreCase : negated conditional → KILLED
        if (searchStr.length() == 0) {
1575 1 1. indexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return startPos;
1576
        }
1577 3 1. indexOfIgnoreCase : changed conditional boundary → SURVIVED
2. indexOfIgnoreCase : Changed increment from 1 to -1 → TIMED_OUT
3. indexOfIgnoreCase : negated conditional → KILLED
        for (int i = startPos; i < endLimit; i++) {
1578 1 1. indexOfIgnoreCase : negated conditional → KILLED
            if (CharSequenceUtils.regionMatches(str, true, i, searchStr, 0, searchStr.length())) {
1579 1 1. indexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return i;
1580
            }
1581
        }
1582 1 1. indexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return INDEX_NOT_FOUND;
1583
    }
1584
1585
    // LastIndexOf
1586
    //-----------------------------------------------------------------------
1587
    /**
1588
     * <p>Finds the last index within a CharSequence, handling {@code null}.
1589
     * This method uses {@link String#lastIndexOf(int)} if possible.</p>
1590
     *
1591
     * <p>A {@code null} or empty ("") CharSequence will return {@code -1}.</p>
1592
     *
1593
     * <pre>
1594
     * StringUtils.lastIndexOf(null, *)         = -1
1595
     * StringUtils.lastIndexOf("", *)           = -1
1596
     * StringUtils.lastIndexOf("aabaabaa", 'a') = 7
1597
     * StringUtils.lastIndexOf("aabaabaa", 'b') = 5
1598
     * </pre>
1599
     *
1600
     * @param seq  the CharSequence to check, may be null
1601
     * @param searchChar  the character to find
1602
     * @return the last index of the search character,
1603
     *  -1 if no match or {@code null} string input
1604
     * @since 2.0
1605
     * @since 3.0 Changed signature from lastIndexOf(String, int) to lastIndexOf(CharSequence, int)
1606
     */
1607
    public static int lastIndexOf(final CharSequence seq, final int searchChar) {
1608 1 1. lastIndexOf : negated conditional → KILLED
        if (isEmpty(seq)) {
1609 1 1. lastIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1610
        }
1611 1 1. lastIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.lastIndexOf(seq, searchChar, seq.length());
1612
    }
1613
1614
    /**
1615
     * <p>Finds the last index within a CharSequence from a start position,
1616
     * handling {@code null}.
1617
     * This method uses {@link String#lastIndexOf(int, int)} if possible.</p>
1618
     *
1619
     * <p>A {@code null} or empty ("") CharSequence will return {@code -1}.
1620
     * A negative start position returns {@code -1}.
1621
     * A start position greater than the string length searches the whole string.
1622
     * The search starts at the startPos and works backwards; matches starting after the start
1623
     * position are ignored.
1624
     * </p>
1625
     *
1626
     * <pre>
1627
     * StringUtils.lastIndexOf(null, *, *)          = -1
1628
     * StringUtils.lastIndexOf("", *,  *)           = -1
1629
     * StringUtils.lastIndexOf("aabaabaa", 'b', 8)  = 5
1630
     * StringUtils.lastIndexOf("aabaabaa", 'b', 4)  = 2
1631
     * StringUtils.lastIndexOf("aabaabaa", 'b', 0)  = -1
1632
     * StringUtils.lastIndexOf("aabaabaa", 'b', 9)  = 5
1633
     * StringUtils.lastIndexOf("aabaabaa", 'b', -1) = -1
1634
     * StringUtils.lastIndexOf("aabaabaa", 'a', 0)  = 0
1635
     * </pre>
1636
     *
1637
     * @param seq  the CharSequence to check, may be null
1638
     * @param searchChar  the character to find
1639
     * @param startPos  the start position
1640
     * @return the last index of the search character (always &le; startPos),
1641
     *  -1 if no match or {@code null} string input
1642
     * @since 2.0
1643
     * @since 3.0 Changed signature from lastIndexOf(String, int, int) to lastIndexOf(CharSequence, int, int)
1644
     */
1645
    public static int lastIndexOf(final CharSequence seq, final int searchChar, final int startPos) {
1646 1 1. lastIndexOf : negated conditional → KILLED
        if (isEmpty(seq)) {
1647 1 1. lastIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1648
        }
1649 1 1. lastIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.lastIndexOf(seq, searchChar, startPos);
1650
    }
1651
1652
    /**
1653
     * <p>Finds the last index within a CharSequence, handling {@code null}.
1654
     * This method uses {@link String#lastIndexOf(String)} if possible.</p>
1655
     *
1656
     * <p>A {@code null} CharSequence will return {@code -1}.</p>
1657
     *
1658
     * <pre>
1659
     * StringUtils.lastIndexOf(null, *)          = -1
1660
     * StringUtils.lastIndexOf(*, null)          = -1
1661
     * StringUtils.lastIndexOf("", "")           = 0
1662
     * StringUtils.lastIndexOf("aabaabaa", "a")  = 7
1663
     * StringUtils.lastIndexOf("aabaabaa", "b")  = 5
1664
     * StringUtils.lastIndexOf("aabaabaa", "ab") = 4
1665
     * StringUtils.lastIndexOf("aabaabaa", "")   = 8
1666
     * </pre>
1667
     *
1668
     * @param seq  the CharSequence to check, may be null
1669
     * @param searchSeq  the CharSequence to find, may be null
1670
     * @return the last index of the search String,
1671
     *  -1 if no match or {@code null} string input
1672
     * @since 2.0
1673
     * @since 3.0 Changed signature from lastIndexOf(String, String) to lastIndexOf(CharSequence, CharSequence)
1674
     */
1675
    public static int lastIndexOf(final CharSequence seq, final CharSequence searchSeq) {
1676 2 1. lastIndexOf : negated conditional → KILLED
2. lastIndexOf : negated conditional → KILLED
        if (seq == null || searchSeq == null) {
1677 1 1. lastIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1678
        }
1679 1 1. lastIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.lastIndexOf(seq, searchSeq, seq.length());
1680
    }
1681
1682
    /**
1683
     * <p>Finds the n-th last index within a String, handling {@code null}.
1684
     * This method uses {@link String#lastIndexOf(String)}.</p>
1685
     *
1686
     * <p>A {@code null} String will return {@code -1}.</p>
1687
     *
1688
     * <pre>
1689
     * StringUtils.lastOrdinalIndexOf(null, *, *)          = -1
1690
     * StringUtils.lastOrdinalIndexOf(*, null, *)          = -1
1691
     * StringUtils.lastOrdinalIndexOf("", "", *)           = 0
1692
     * StringUtils.lastOrdinalIndexOf("aabaabaa", "a", 1)  = 7
1693
     * StringUtils.lastOrdinalIndexOf("aabaabaa", "a", 2)  = 6
1694
     * StringUtils.lastOrdinalIndexOf("aabaabaa", "b", 1)  = 5
1695
     * StringUtils.lastOrdinalIndexOf("aabaabaa", "b", 2)  = 2
1696
     * StringUtils.lastOrdinalIndexOf("aabaabaa", "ab", 1) = 4
1697
     * StringUtils.lastOrdinalIndexOf("aabaabaa", "ab", 2) = 1
1698
     * StringUtils.lastOrdinalIndexOf("aabaabaa", "", 1)   = 8
1699
     * StringUtils.lastOrdinalIndexOf("aabaabaa", "", 2)   = 8
1700
     * </pre>
1701
     *
1702
     * <p>Note that 'tail(CharSequence str, int n)' may be implemented as: </p>
1703
     *
1704
     * <pre>
1705
     *   str.substring(lastOrdinalIndexOf(str, "\n", n) + 1)
1706
     * </pre>
1707
     *
1708
     * @param str  the CharSequence to check, may be null
1709
     * @param searchStr  the CharSequence to find, may be null
1710
     * @param ordinal  the n-th last {@code searchStr} to find
1711
     * @return the n-th last index of the search CharSequence,
1712
     *  {@code -1} ({@code INDEX_NOT_FOUND}) if no match or {@code null} string input
1713
     * @since 2.5
1714
     * @since 3.0 Changed signature from lastOrdinalIndexOf(String, String, int) to lastOrdinalIndexOf(CharSequence, CharSequence, int)
1715
     */
1716
    public static int lastOrdinalIndexOf(final CharSequence str, final CharSequence searchStr, final int ordinal) {
1717 1 1. lastOrdinalIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return ordinalIndexOf(str, searchStr, ordinal, true);
1718
    }
1719
1720
    /**
1721
     * <p>Finds the last index within a CharSequence, handling {@code null}.
1722
     * This method uses {@link String#lastIndexOf(String, int)} if possible.</p>
1723
     *
1724
     * <p>A {@code null} CharSequence will return {@code -1}.
1725
     * A negative start position returns {@code -1}.
1726
     * An empty ("") search CharSequence always matches unless the start position is negative.
1727
     * A start position greater than the string length searches the whole string.
1728
     * The search starts at the startPos and works backwards; matches starting after the start
1729
     * position are ignored.
1730
     * </p>
1731
     *
1732
     * <pre>
1733
     * StringUtils.lastIndexOf(null, *, *)          = -1
1734
     * StringUtils.lastIndexOf(*, null, *)          = -1
1735
     * StringUtils.lastIndexOf("aabaabaa", "a", 8)  = 7
1736
     * StringUtils.lastIndexOf("aabaabaa", "b", 8)  = 5
1737
     * StringUtils.lastIndexOf("aabaabaa", "ab", 8) = 4
1738
     * StringUtils.lastIndexOf("aabaabaa", "b", 9)  = 5
1739
     * StringUtils.lastIndexOf("aabaabaa", "b", -1) = -1
1740
     * StringUtils.lastIndexOf("aabaabaa", "a", 0)  = 0
1741
     * StringUtils.lastIndexOf("aabaabaa", "b", 0)  = -1
1742
     * StringUtils.lastIndexOf("aabaabaa", "b", 1)  = -1
1743
     * StringUtils.lastIndexOf("aabaabaa", "b", 2)  = 2
1744
     * StringUtils.lastIndexOf("aabaabaa", "ba", 2)  = -1
1745
     * StringUtils.lastIndexOf("aabaabaa", "ba", 2)  = 2
1746
     * </pre>
1747
     *
1748
     * @param seq  the CharSequence to check, may be null
1749
     * @param searchSeq  the CharSequence to find, may be null
1750
     * @param startPos  the start position, negative treated as zero
1751
     * @return the last index of the search CharSequence (always &le; startPos),
1752
     *  -1 if no match or {@code null} string input
1753
     * @since 2.0
1754
     * @since 3.0 Changed signature from lastIndexOf(String, String, int) to lastIndexOf(CharSequence, CharSequence, int)
1755
     */
1756
    public static int lastIndexOf(final CharSequence seq, final CharSequence searchSeq, final int startPos) {
1757 2 1. lastIndexOf : negated conditional → KILLED
2. lastIndexOf : negated conditional → KILLED
        if (seq == null || searchSeq == null) {
1758 1 1. lastIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1759
        }
1760 1 1. lastIndexOf : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.lastIndexOf(seq, searchSeq, startPos);
1761
    }
1762
1763
    /**
1764
     * <p>Case in-sensitive find of the last index within a CharSequence.</p>
1765
     *
1766
     * <p>A {@code null} CharSequence will return {@code -1}.
1767
     * A negative start position returns {@code -1}.
1768
     * An empty ("") search CharSequence always matches unless the start position is negative.
1769
     * A start position greater than the string length searches the whole string.</p>
1770
     *
1771
     * <pre>
1772
     * StringUtils.lastIndexOfIgnoreCase(null, *)          = -1
1773
     * StringUtils.lastIndexOfIgnoreCase(*, null)          = -1
1774
     * StringUtils.lastIndexOfIgnoreCase("aabaabaa", "A")  = 7
1775
     * StringUtils.lastIndexOfIgnoreCase("aabaabaa", "B")  = 5
1776
     * StringUtils.lastIndexOfIgnoreCase("aabaabaa", "AB") = 4
1777
     * </pre>
1778
     *
1779
     * @param str  the CharSequence to check, may be null
1780
     * @param searchStr  the CharSequence to find, may be null
1781
     * @return the first index of the search CharSequence,
1782
     *  -1 if no match or {@code null} string input
1783
     * @since 2.5
1784
     * @since 3.0 Changed signature from lastIndexOfIgnoreCase(String, String) to lastIndexOfIgnoreCase(CharSequence, CharSequence)
1785
     */
1786
    public static int lastIndexOfIgnoreCase(final CharSequence str, final CharSequence searchStr) {
1787 2 1. lastIndexOfIgnoreCase : negated conditional → KILLED
2. lastIndexOfIgnoreCase : negated conditional → KILLED
        if (str == null || searchStr == null) {
1788 1 1. lastIndexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1789
        }
1790 1 1. lastIndexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return lastIndexOfIgnoreCase(str, searchStr, str.length());
1791
    }
1792
1793
    /**
1794
     * <p>Case in-sensitive find of the last index within a CharSequence
1795
     * from the specified position.</p>
1796
     *
1797
     * <p>A {@code null} CharSequence will return {@code -1}.
1798
     * A negative start position returns {@code -1}.
1799
     * An empty ("") search CharSequence always matches unless the start position is negative.
1800
     * A start position greater than the string length searches the whole string.
1801
     * The search starts at the startPos and works backwards; matches starting after the start
1802
     * position are ignored.
1803
     * </p>
1804
     *
1805
     * <pre>
1806
     * StringUtils.lastIndexOfIgnoreCase(null, *, *)          = -1
1807
     * StringUtils.lastIndexOfIgnoreCase(*, null, *)          = -1
1808
     * StringUtils.lastIndexOfIgnoreCase("aabaabaa", "A", 8)  = 7
1809
     * StringUtils.lastIndexOfIgnoreCase("aabaabaa", "B", 8)  = 5
1810
     * StringUtils.lastIndexOfIgnoreCase("aabaabaa", "AB", 8) = 4
1811
     * StringUtils.lastIndexOfIgnoreCase("aabaabaa", "B", 9)  = 5
1812
     * StringUtils.lastIndexOfIgnoreCase("aabaabaa", "B", -1) = -1
1813
     * StringUtils.lastIndexOfIgnoreCase("aabaabaa", "A", 0)  = 0
1814
     * StringUtils.lastIndexOfIgnoreCase("aabaabaa", "B", 0)  = -1
1815
     * </pre>
1816
     *
1817
     * @param str  the CharSequence to check, may be null
1818
     * @param searchStr  the CharSequence to find, may be null
1819
     * @param startPos  the start position
1820
     * @return the last index of the search CharSequence (always &le; startPos),
1821
     *  -1 if no match or {@code null} input
1822
     * @since 2.5
1823
     * @since 3.0 Changed signature from lastIndexOfIgnoreCase(String, String, int) to lastIndexOfIgnoreCase(CharSequence, CharSequence, int)
1824
     */
1825
    public static int lastIndexOfIgnoreCase(final CharSequence str, final CharSequence searchStr, int startPos) {
1826 2 1. lastIndexOfIgnoreCase : negated conditional → KILLED
2. lastIndexOfIgnoreCase : negated conditional → KILLED
        if (str == null || searchStr == null) {
1827 1 1. lastIndexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1828
        }
1829 3 1. lastIndexOfIgnoreCase : changed conditional boundary → SURVIVED
2. lastIndexOfIgnoreCase : Replaced integer subtraction with addition → SURVIVED
3. lastIndexOfIgnoreCase : negated conditional → KILLED
        if (startPos > str.length() - searchStr.length()) {
1830 1 1. lastIndexOfIgnoreCase : Replaced integer subtraction with addition → SURVIVED
            startPos = str.length() - searchStr.length();
1831
        }
1832 2 1. lastIndexOfIgnoreCase : changed conditional boundary → KILLED
2. lastIndexOfIgnoreCase : negated conditional → KILLED
        if (startPos < 0) {
1833 1 1. lastIndexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1834
        }
1835 1 1. lastIndexOfIgnoreCase : negated conditional → KILLED
        if (searchStr.length() == 0) {
1836 1 1. lastIndexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return startPos;
1837
        }
1838
1839 3 1. lastIndexOfIgnoreCase : Changed increment from -1 to 1 → TIMED_OUT
2. lastIndexOfIgnoreCase : changed conditional boundary → KILLED
3. lastIndexOfIgnoreCase : negated conditional → KILLED
        for (int i = startPos; i >= 0; i--) {
1840 1 1. lastIndexOfIgnoreCase : negated conditional → KILLED
            if (CharSequenceUtils.regionMatches(str, true, i, searchStr, 0, searchStr.length())) {
1841 1 1. lastIndexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return i;
1842
            }
1843
        }
1844 1 1. lastIndexOfIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return INDEX_NOT_FOUND;
1845
    }
1846
1847
    // Contains
1848
    //-----------------------------------------------------------------------
1849
    /**
1850
     * <p>Checks if CharSequence contains a search character, handling {@code null}.
1851
     * This method uses {@link String#indexOf(int)} if possible.</p>
1852
     *
1853
     * <p>A {@code null} or empty ("") CharSequence will return {@code false}.</p>
1854
     *
1855
     * <pre>
1856
     * StringUtils.contains(null, *)    = false
1857
     * StringUtils.contains("", *)      = false
1858
     * StringUtils.contains("abc", 'a') = true
1859
     * StringUtils.contains("abc", 'z') = false
1860
     * </pre>
1861
     *
1862
     * @param seq  the CharSequence to check, may be null
1863
     * @param searchChar  the character to find
1864
     * @return true if the CharSequence contains the search character,
1865
     *  false if not or {@code null} string input
1866
     * @since 2.0
1867
     * @since 3.0 Changed signature from contains(String, int) to contains(CharSequence, int)
1868
     */
1869
    public static boolean contains(final CharSequence seq, final int searchChar) {
1870 1 1. contains : negated conditional → KILLED
        if (isEmpty(seq)) {
1871 1 1. contains : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
1872
        }
1873 3 1. contains : changed conditional boundary → KILLED
2. contains : negated conditional → KILLED
3. contains : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.indexOf(seq, searchChar, 0) >= 0;
1874
    }
1875
1876
    /**
1877
     * <p>Checks if CharSequence contains a search CharSequence, handling {@code null}.
1878
     * This method uses {@link String#indexOf(String)} if possible.</p>
1879
     *
1880
     * <p>A {@code null} CharSequence will return {@code false}.</p>
1881
     *
1882
     * <pre>
1883
     * StringUtils.contains(null, *)     = false
1884
     * StringUtils.contains(*, null)     = false
1885
     * StringUtils.contains("", "")      = true
1886
     * StringUtils.contains("abc", "")   = true
1887
     * StringUtils.contains("abc", "a")  = true
1888
     * StringUtils.contains("abc", "z")  = false
1889
     * </pre>
1890
     *
1891
     * @param seq  the CharSequence to check, may be null
1892
     * @param searchSeq  the CharSequence to find, may be null
1893
     * @return true if the CharSequence contains the search CharSequence,
1894
     *  false if not or {@code null} string input
1895
     * @since 2.0
1896
     * @since 3.0 Changed signature from contains(String, String) to contains(CharSequence, CharSequence)
1897
     */
1898
    public static boolean contains(final CharSequence seq, final CharSequence searchSeq) {
1899 2 1. contains : negated conditional → KILLED
2. contains : negated conditional → KILLED
        if (seq == null || searchSeq == null) {
1900 1 1. contains : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
1901
        }
1902 3 1. contains : changed conditional boundary → KILLED
2. contains : negated conditional → KILLED
3. contains : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.indexOf(seq, searchSeq, 0) >= 0;
1903
    }
1904
1905
    /**
1906
     * <p>Checks if CharSequence contains a search CharSequence irrespective of case,
1907
     * handling {@code null}. Case-insensitivity is defined as by
1908
     * {@link String#equalsIgnoreCase(String)}.
1909
     *
1910
     * <p>A {@code null} CharSequence will return {@code false}.</p>
1911
     *
1912
     * <pre>
1913
     * StringUtils.containsIgnoreCase(null, *) = false
1914
     * StringUtils.containsIgnoreCase(*, null) = false
1915
     * StringUtils.containsIgnoreCase("", "") = true
1916
     * StringUtils.containsIgnoreCase("abc", "") = true
1917
     * StringUtils.containsIgnoreCase("abc", "a") = true
1918
     * StringUtils.containsIgnoreCase("abc", "z") = false
1919
     * StringUtils.containsIgnoreCase("abc", "A") = true
1920
     * StringUtils.containsIgnoreCase("abc", "Z") = false
1921
     * </pre>
1922
     *
1923
     * @param str  the CharSequence to check, may be null
1924
     * @param searchStr  the CharSequence to find, may be null
1925
     * @return true if the CharSequence contains the search CharSequence irrespective of
1926
     * case or false if not or {@code null} string input
1927
     * @since 3.0 Changed signature from containsIgnoreCase(String, String) to containsIgnoreCase(CharSequence, CharSequence)
1928
     */
1929
    public static boolean containsIgnoreCase(final CharSequence str, final CharSequence searchStr) {
1930 2 1. containsIgnoreCase : negated conditional → KILLED
2. containsIgnoreCase : negated conditional → KILLED
        if (str == null || searchStr == null) {
1931 1 1. containsIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
1932
        }
1933
        final int len = searchStr.length();
1934 1 1. containsIgnoreCase : Replaced integer subtraction with addition → SURVIVED
        final int max = str.length() - len;
1935 3 1. containsIgnoreCase : Changed increment from 1 to -1 → TIMED_OUT
2. containsIgnoreCase : changed conditional boundary → KILLED
3. containsIgnoreCase : negated conditional → KILLED
        for (int i = 0; i <= max; i++) {
1936 1 1. containsIgnoreCase : negated conditional → KILLED
            if (CharSequenceUtils.regionMatches(str, true, i, searchStr, 0, len)) {
1937 1 1. containsIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return true;
1938
            }
1939
        }
1940 1 1. containsIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
1941
    }
1942
1943
    /**
1944
     * <p>Check whether the given CharSequence contains any whitespace characters.</p>
1945
     * 
1946
     * <p>Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
1947
     * 
1948
     * @param seq the CharSequence to check (may be {@code null})
1949
     * @return {@code true} if the CharSequence is not empty and
1950
     * contains at least 1 (breaking) whitespace character
1951
     * @since 3.0
1952
     */
1953
    // From org.springframework.util.StringUtils, under Apache License 2.0
1954
    public static boolean containsWhitespace(final CharSequence seq) {
1955 1 1. containsWhitespace : negated conditional → KILLED
        if (isEmpty(seq)) {
1956 1 1. containsWhitespace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
1957
        }
1958
        final int strLen = seq.length();
1959 3 1. containsWhitespace : changed conditional boundary → KILLED
2. containsWhitespace : Changed increment from 1 to -1 → KILLED
3. containsWhitespace : negated conditional → KILLED
        for (int i = 0; i < strLen; i++) {
1960 1 1. containsWhitespace : negated conditional → KILLED
            if (Character.isWhitespace(seq.charAt(i))) {
1961 1 1. containsWhitespace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return true;
1962
            }
1963
        }
1964 1 1. containsWhitespace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
1965
    }
1966
1967
    // IndexOfAny chars
1968
    //-----------------------------------------------------------------------
1969
    /**
1970
     * <p>Search a CharSequence to find the first index of any
1971
     * character in the given set of characters.</p>
1972
     *
1973
     * <p>A {@code null} String will return {@code -1}.
1974
     * A {@code null} or zero length search array will return {@code -1}.</p>
1975
     *
1976
     * <pre>
1977
     * StringUtils.indexOfAny(null, *)                = -1
1978
     * StringUtils.indexOfAny("", *)                  = -1
1979
     * StringUtils.indexOfAny(*, null)                = -1
1980
     * StringUtils.indexOfAny(*, [])                  = -1
1981
     * StringUtils.indexOfAny("zzabyycdxx",['z','a']) = 0
1982
     * StringUtils.indexOfAny("zzabyycdxx",['b','y']) = 3
1983
     * StringUtils.indexOfAny("aba", ['z'])           = -1
1984
     * </pre>
1985
     *
1986
     * @param cs  the CharSequence to check, may be null
1987
     * @param searchChars  the chars to search for, may be null
1988
     * @return the index of any of the chars, -1 if no match or null input
1989
     * @since 2.0
1990
     * @since 3.0 Changed signature from indexOfAny(String, char[]) to indexOfAny(CharSequence, char...)
1991
     */
1992
    public static int indexOfAny(final CharSequence cs, final char... searchChars) {
1993 2 1. indexOfAny : negated conditional → KILLED
2. indexOfAny : negated conditional → KILLED
        if (isEmpty(cs) || ArrayUtils.isEmpty(searchChars)) {
1994 1 1. indexOfAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
1995
        }
1996
        final int csLen = cs.length();
1997 1 1. indexOfAny : Replaced integer subtraction with addition → SURVIVED
        final int csLast = csLen - 1;
1998
        final int searchLen = searchChars.length;
1999 1 1. indexOfAny : Replaced integer subtraction with addition → SURVIVED
        final int searchLast = searchLen - 1;
2000 3 1. indexOfAny : changed conditional boundary → KILLED
2. indexOfAny : Changed increment from 1 to -1 → KILLED
3. indexOfAny : negated conditional → KILLED
        for (int i = 0; i < csLen; i++) {
2001
            final char ch = cs.charAt(i);
2002 3 1. indexOfAny : changed conditional boundary → KILLED
2. indexOfAny : Changed increment from 1 to -1 → KILLED
3. indexOfAny : negated conditional → KILLED
            for (int j = 0; j < searchLen; j++) {
2003 1 1. indexOfAny : negated conditional → KILLED
                if (searchChars[j] == ch) {
2004 5 1. indexOfAny : changed conditional boundary → SURVIVED
2. indexOfAny : changed conditional boundary → SURVIVED
3. indexOfAny : negated conditional → KILLED
4. indexOfAny : negated conditional → KILLED
5. indexOfAny : negated conditional → KILLED
                    if (i < csLast && j < searchLast && Character.isHighSurrogate(ch)) {
2005
                        // ch is a supplementary character
2006 3 1. indexOfAny : Replaced integer addition with subtraction → KILLED
2. indexOfAny : Replaced integer addition with subtraction → KILLED
3. indexOfAny : negated conditional → KILLED
                        if (searchChars[j + 1] == cs.charAt(i + 1)) {
2007 1 1. indexOfAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                            return i;
2008
                        }
2009
                    } else {
2010 1 1. indexOfAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                        return i;
2011
                    }
2012
                }
2013
            }
2014
        }
2015 1 1. indexOfAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return INDEX_NOT_FOUND;
2016
    }
2017
2018
    /**
2019
     * <p>Search a CharSequence to find the first index of any
2020
     * character in the given set of characters.</p>
2021
     *
2022
     * <p>A {@code null} String will return {@code -1}.
2023
     * A {@code null} search string will return {@code -1}.</p>
2024
     *
2025
     * <pre>
2026
     * StringUtils.indexOfAny(null, *)            = -1
2027
     * StringUtils.indexOfAny("", *)              = -1
2028
     * StringUtils.indexOfAny(*, null)            = -1
2029
     * StringUtils.indexOfAny(*, "")              = -1
2030
     * StringUtils.indexOfAny("zzabyycdxx", "za") = 0
2031
     * StringUtils.indexOfAny("zzabyycdxx", "by") = 3
2032
     * StringUtils.indexOfAny("aba","z")          = -1
2033
     * </pre>
2034
     *
2035
     * @param cs  the CharSequence to check, may be null
2036
     * @param searchChars  the chars to search for, may be null
2037
     * @return the index of any of the chars, -1 if no match or null input
2038
     * @since 2.0
2039
     * @since 3.0 Changed signature from indexOfAny(String, String) to indexOfAny(CharSequence, String)
2040
     */
2041
    public static int indexOfAny(final CharSequence cs, final String searchChars) {
2042 2 1. indexOfAny : negated conditional → KILLED
2. indexOfAny : negated conditional → KILLED
        if (isEmpty(cs) || isEmpty(searchChars)) {
2043 1 1. indexOfAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
2044
        }
2045 1 1. indexOfAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return indexOfAny(cs, searchChars.toCharArray());
2046
    }
2047
2048
    // ContainsAny
2049
    //-----------------------------------------------------------------------
2050
    /**
2051
     * <p>Checks if the CharSequence contains any character in the given
2052
     * set of characters.</p>
2053
     *
2054
     * <p>A {@code null} CharSequence will return {@code false}.
2055
     * A {@code null} or zero length search array will return {@code false}.</p>
2056
     *
2057
     * <pre>
2058
     * StringUtils.containsAny(null, *)                = false
2059
     * StringUtils.containsAny("", *)                  = false
2060
     * StringUtils.containsAny(*, null)                = false
2061
     * StringUtils.containsAny(*, [])                  = false
2062
     * StringUtils.containsAny("zzabyycdxx",['z','a']) = true
2063
     * StringUtils.containsAny("zzabyycdxx",['b','y']) = true
2064
     * StringUtils.containsAny("zzabyycdxx",['z','y']) = true
2065
     * StringUtils.containsAny("aba", ['z'])           = false
2066
     * </pre>
2067
     *
2068
     * @param cs  the CharSequence to check, may be null
2069
     * @param searchChars  the chars to search for, may be null
2070
     * @return the {@code true} if any of the chars are found,
2071
     * {@code false} if no match or null input
2072
     * @since 2.4
2073
     * @since 3.0 Changed signature from containsAny(String, char[]) to containsAny(CharSequence, char...)
2074
     */
2075
    public static boolean containsAny(final CharSequence cs, final char... searchChars) {
2076 2 1. containsAny : negated conditional → KILLED
2. containsAny : negated conditional → KILLED
        if (isEmpty(cs) || ArrayUtils.isEmpty(searchChars)) {
2077 1 1. containsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
2078
        }
2079
        final int csLength = cs.length();
2080
        final int searchLength = searchChars.length;
2081 1 1. containsAny : Replaced integer subtraction with addition → KILLED
        final int csLast = csLength - 1;
2082 1 1. containsAny : Replaced integer subtraction with addition → KILLED
        final int searchLast = searchLength - 1;
2083 3 1. containsAny : changed conditional boundary → KILLED
2. containsAny : Changed increment from 1 to -1 → KILLED
3. containsAny : negated conditional → KILLED
        for (int i = 0; i < csLength; i++) {
2084
            final char ch = cs.charAt(i);
2085 3 1. containsAny : changed conditional boundary → KILLED
2. containsAny : Changed increment from 1 to -1 → KILLED
3. containsAny : negated conditional → KILLED
            for (int j = 0; j < searchLength; j++) {
2086 1 1. containsAny : negated conditional → KILLED
                if (searchChars[j] == ch) {
2087 1 1. containsAny : negated conditional → KILLED
                    if (Character.isHighSurrogate(ch)) {
2088 1 1. containsAny : negated conditional → KILLED
                        if (j == searchLast) {
2089
                            // missing low surrogate, fine, like String.indexOf(String)
2090 1 1. containsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                            return true;
2091
                        }
2092 5 1. containsAny : changed conditional boundary → KILLED
2. containsAny : Replaced integer addition with subtraction → KILLED
3. containsAny : Replaced integer addition with subtraction → KILLED
4. containsAny : negated conditional → KILLED
5. containsAny : negated conditional → KILLED
                        if (i < csLast && searchChars[j + 1] == cs.charAt(i + 1)) {
2093 1 1. containsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                            return true;
2094
                        }
2095
                    } else {
2096
                        // ch is in the Basic Multilingual Plane
2097 1 1. containsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                        return true;
2098
                    }
2099
                }
2100
            }
2101
        }
2102 1 1. containsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
2103
    }
2104
2105
    /**
2106
     * <p>
2107
     * Checks if the CharSequence contains any character in the given set of characters.
2108
     * </p>
2109
     *
2110
     * <p>
2111
     * A {@code null} CharSequence will return {@code false}. A {@code null} search CharSequence will return
2112
     * {@code false}.
2113
     * </p>
2114
     *
2115
     * <pre>
2116
     * StringUtils.containsAny(null, *)               = false
2117
     * StringUtils.containsAny("", *)                 = false
2118
     * StringUtils.containsAny(*, null)               = false
2119
     * StringUtils.containsAny(*, "")                 = false
2120
     * StringUtils.containsAny("zzabyycdxx", "za")    = true
2121
     * StringUtils.containsAny("zzabyycdxx", "by")    = true
2122
     * StringUtils.containsAny("zzabyycdxx", "zy")    = true
2123
     * StringUtils.containsAny("zzabyycdxx", "\tx")   = true
2124
     * StringUtils.containsAny("zzabyycdxx", "$.#yF") = true
2125
     * StringUtils.containsAny("aba","z")             = false
2126
     * </pre>
2127
     *
2128
     * @param cs
2129
     *            the CharSequence to check, may be null
2130
     * @param searchChars
2131
     *            the chars to search for, may be null
2132
     * @return the {@code true} if any of the chars are found, {@code false} if no match or null input
2133
     * @since 2.4
2134
     * @since 3.0 Changed signature from containsAny(String, String) to containsAny(CharSequence, CharSequence)
2135
     */
2136
    public static boolean containsAny(final CharSequence cs, final CharSequence searchChars) {
2137 1 1. containsAny : negated conditional → KILLED
        if (searchChars == null) {
2138 1 1. containsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
2139
        }
2140 1 1. containsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return containsAny(cs, CharSequenceUtils.toCharArray(searchChars));
2141
    }
2142
2143
    /**
2144
     * <p>Checks if the CharSequence contains any of the CharSequences in the given array.</p>
2145
     *
2146
     * <p>
2147
     * A {@code null} {@code cs} CharSequence will return {@code false}. A {@code null} or zero
2148
     * length search array will return {@code false}.
2149
     * </p>
2150
     *
2151
     * <pre>
2152
     * StringUtils.containsAny(null, *)            = false
2153
     * StringUtils.containsAny("", *)              = false
2154
     * StringUtils.containsAny(*, null)            = false
2155
     * StringUtils.containsAny(*, [])              = false
2156
     * StringUtils.containsAny("abcd", "ab", null) = true
2157
     * StringUtils.containsAny("abcd", "ab", "cd") = true
2158
     * StringUtils.containsAny("abc", "d", "abc")  = true
2159
     * </pre>
2160
     *
2161
     * 
2162
     * @param cs The CharSequence to check, may be null
2163
     * @param searchCharSequences The array of CharSequences to search for, may be null.
2164
     * Individual CharSequences may be null as well.
2165
     * @return {@code true} if any of the search CharSequences are found, {@code false} otherwise
2166
     * @since 3.4
2167
     */
2168
    public static boolean containsAny(final CharSequence cs, final CharSequence... searchCharSequences) {
2169 2 1. containsAny : negated conditional → KILLED
2. containsAny : negated conditional → KILLED
        if (isEmpty(cs) || ArrayUtils.isEmpty(searchCharSequences)) {
2170 1 1. containsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
2171
        }
2172 3 1. containsAny : changed conditional boundary → KILLED
2. containsAny : Changed increment from 1 to -1 → KILLED
3. containsAny : negated conditional → KILLED
        for (final CharSequence searchCharSequence : searchCharSequences) {
2173 1 1. containsAny : negated conditional → KILLED
            if (contains(cs, searchCharSequence)) {
2174 1 1. containsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return true;
2175
            }
2176
        }
2177 1 1. containsAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
2178
    }
2179
2180
    // IndexOfAnyBut chars
2181
    //-----------------------------------------------------------------------
2182
    /**
2183
     * <p>Searches a CharSequence to find the first index of any
2184
     * character not in the given set of characters.</p>
2185
     *
2186
     * <p>A {@code null} CharSequence will return {@code -1}.
2187
     * A {@code null} or zero length search array will return {@code -1}.</p>
2188
     *
2189
     * <pre>
2190
     * StringUtils.indexOfAnyBut(null, *)                              = -1
2191
     * StringUtils.indexOfAnyBut("", *)                                = -1
2192
     * StringUtils.indexOfAnyBut(*, null)                              = -1
2193
     * StringUtils.indexOfAnyBut(*, [])                                = -1
2194
     * StringUtils.indexOfAnyBut("zzabyycdxx", new char[] {'z', 'a'} ) = 3
2195
     * StringUtils.indexOfAnyBut("aba", new char[] {'z'} )             = 0
2196
     * StringUtils.indexOfAnyBut("aba", new char[] {'a', 'b'} )        = -1
2197
2198
     * </pre>
2199
     *
2200
     * @param cs  the CharSequence to check, may be null
2201
     * @param searchChars  the chars to search for, may be null
2202
     * @return the index of any of the chars, -1 if no match or null input
2203
     * @since 2.0
2204
     * @since 3.0 Changed signature from indexOfAnyBut(String, char[]) to indexOfAnyBut(CharSequence, char...)
2205
     */
2206
    public static int indexOfAnyBut(final CharSequence cs, final char... searchChars) {
2207 2 1. indexOfAnyBut : negated conditional → KILLED
2. indexOfAnyBut : negated conditional → KILLED
        if (isEmpty(cs) || ArrayUtils.isEmpty(searchChars)) {
2208 1 1. indexOfAnyBut : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
2209
        }
2210
        final int csLen = cs.length();
2211 1 1. indexOfAnyBut : Replaced integer subtraction with addition → SURVIVED
        final int csLast = csLen - 1;
2212
        final int searchLen = searchChars.length;
2213 1 1. indexOfAnyBut : Replaced integer subtraction with addition → SURVIVED
        final int searchLast = searchLen - 1;
2214
        outer:
2215 3 1. indexOfAnyBut : changed conditional boundary → KILLED
2. indexOfAnyBut : Changed increment from 1 to -1 → KILLED
3. indexOfAnyBut : negated conditional → KILLED
        for (int i = 0; i < csLen; i++) {
2216
            final char ch = cs.charAt(i);
2217 3 1. indexOfAnyBut : changed conditional boundary → KILLED
2. indexOfAnyBut : Changed increment from 1 to -1 → KILLED
3. indexOfAnyBut : negated conditional → KILLED
            for (int j = 0; j < searchLen; j++) {
2218 1 1. indexOfAnyBut : negated conditional → KILLED
                if (searchChars[j] == ch) {
2219 5 1. indexOfAnyBut : changed conditional boundary → SURVIVED
2. indexOfAnyBut : changed conditional boundary → SURVIVED
3. indexOfAnyBut : negated conditional → KILLED
4. indexOfAnyBut : negated conditional → KILLED
5. indexOfAnyBut : negated conditional → KILLED
                    if (i < csLast && j < searchLast && Character.isHighSurrogate(ch)) {
2220 3 1. indexOfAnyBut : Replaced integer addition with subtraction → KILLED
2. indexOfAnyBut : Replaced integer addition with subtraction → KILLED
3. indexOfAnyBut : negated conditional → KILLED
                        if (searchChars[j + 1] == cs.charAt(i + 1)) {
2221
                            continue outer;
2222
                        }
2223
                    } else {
2224
                        continue outer;
2225
                    }
2226
                }
2227
            }
2228 1 1. indexOfAnyBut : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return i;
2229
        }
2230 1 1. indexOfAnyBut : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return INDEX_NOT_FOUND;
2231
    }
2232
2233
    /**
2234
     * <p>Search a CharSequence to find the first index of any
2235
     * character not in the given set of characters.</p>
2236
     *
2237
     * <p>A {@code null} CharSequence will return {@code -1}.
2238
     * A {@code null} or empty search string will return {@code -1}.</p>
2239
     *
2240
     * <pre>
2241
     * StringUtils.indexOfAnyBut(null, *)            = -1
2242
     * StringUtils.indexOfAnyBut("", *)              = -1
2243
     * StringUtils.indexOfAnyBut(*, null)            = -1
2244
     * StringUtils.indexOfAnyBut(*, "")              = -1
2245
     * StringUtils.indexOfAnyBut("zzabyycdxx", "za") = 3
2246
     * StringUtils.indexOfAnyBut("zzabyycdxx", "")   = -1
2247
     * StringUtils.indexOfAnyBut("aba","ab")         = -1
2248
     * </pre>
2249
     *
2250
     * @param seq  the CharSequence to check, may be null
2251
     * @param searchChars  the chars to search for, may be null
2252
     * @return the index of any of the chars, -1 if no match or null input
2253
     * @since 2.0
2254
     * @since 3.0 Changed signature from indexOfAnyBut(String, String) to indexOfAnyBut(CharSequence, CharSequence)
2255
     */
2256
    public static int indexOfAnyBut(final CharSequence seq, final CharSequence searchChars) {
2257 2 1. indexOfAnyBut : negated conditional → KILLED
2. indexOfAnyBut : negated conditional → KILLED
        if (isEmpty(seq) || isEmpty(searchChars)) {
2258 1 1. indexOfAnyBut : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
2259
        }
2260
        final int strLen = seq.length();
2261 3 1. indexOfAnyBut : changed conditional boundary → KILLED
2. indexOfAnyBut : Changed increment from 1 to -1 → KILLED
3. indexOfAnyBut : negated conditional → KILLED
        for (int i = 0; i < strLen; i++) {
2262
            final char ch = seq.charAt(i);
2263 2 1. indexOfAnyBut : changed conditional boundary → KILLED
2. indexOfAnyBut : negated conditional → KILLED
            final boolean chFound = CharSequenceUtils.indexOf(searchChars, ch, 0) >= 0;
2264 4 1. indexOfAnyBut : changed conditional boundary → SURVIVED
2. indexOfAnyBut : Replaced integer addition with subtraction → SURVIVED
3. indexOfAnyBut : negated conditional → KILLED
4. indexOfAnyBut : negated conditional → KILLED
            if (i + 1 < strLen && Character.isHighSurrogate(ch)) {
2265 1 1. indexOfAnyBut : Replaced integer addition with subtraction → KILLED
                final char ch2 = seq.charAt(i + 1);
2266 3 1. indexOfAnyBut : changed conditional boundary → SURVIVED
2. indexOfAnyBut : negated conditional → KILLED
3. indexOfAnyBut : negated conditional → KILLED
                if (chFound && CharSequenceUtils.indexOf(searchChars, ch2, 0) < 0) {
2267 1 1. indexOfAnyBut : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                    return i;
2268
                }
2269
            } else {
2270 1 1. indexOfAnyBut : negated conditional → KILLED
                if (!chFound) {
2271 1 1. indexOfAnyBut : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                    return i;
2272
                }
2273
            }
2274
        }
2275 1 1. indexOfAnyBut : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return INDEX_NOT_FOUND;
2276
    }
2277
2278
    // ContainsOnly
2279
    //-----------------------------------------------------------------------
2280
    /**
2281
     * <p>Checks if the CharSequence contains only certain characters.</p>
2282
     *
2283
     * <p>A {@code null} CharSequence will return {@code false}.
2284
     * A {@code null} valid character array will return {@code false}.
2285
     * An empty CharSequence (length()=0) always returns {@code true}.</p>
2286
     *
2287
     * <pre>
2288
     * StringUtils.containsOnly(null, *)       = false
2289
     * StringUtils.containsOnly(*, null)       = false
2290
     * StringUtils.containsOnly("", *)         = true
2291
     * StringUtils.containsOnly("ab", '')      = false
2292
     * StringUtils.containsOnly("abab", 'abc') = true
2293
     * StringUtils.containsOnly("ab1", 'abc')  = false
2294
     * StringUtils.containsOnly("abz", 'abc')  = false
2295
     * </pre>
2296
     *
2297
     * @param cs  the String to check, may be null
2298
     * @param valid  an array of valid chars, may be null
2299
     * @return true if it only contains valid chars and is non-null
2300
     * @since 3.0 Changed signature from containsOnly(String, char[]) to containsOnly(CharSequence, char...)
2301
     */
2302
    public static boolean containsOnly(final CharSequence cs, final char... valid) {
2303
        // All these pre-checks are to maintain API with an older version
2304 2 1. containsOnly : negated conditional → KILLED
2. containsOnly : negated conditional → KILLED
        if (valid == null || cs == null) {
2305 1 1. containsOnly : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
2306
        }
2307 1 1. containsOnly : negated conditional → KILLED
        if (cs.length() == 0) {
2308 1 1. containsOnly : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return true;
2309
        }
2310 1 1. containsOnly : negated conditional → KILLED
        if (valid.length == 0) {
2311 1 1. containsOnly : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
2312
        }
2313 2 1. containsOnly : negated conditional → KILLED
2. containsOnly : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return indexOfAnyBut(cs, valid) == INDEX_NOT_FOUND;
2314
    }
2315
2316
    /**
2317
     * <p>Checks if the CharSequence contains only certain characters.</p>
2318
     *
2319
     * <p>A {@code null} CharSequence will return {@code false}.
2320
     * A {@code null} valid character String will return {@code false}.
2321
     * An empty String (length()=0) always returns {@code true}.</p>
2322
     *
2323
     * <pre>
2324
     * StringUtils.containsOnly(null, *)       = false
2325
     * StringUtils.containsOnly(*, null)       = false
2326
     * StringUtils.containsOnly("", *)         = true
2327
     * StringUtils.containsOnly("ab", "")      = false
2328
     * StringUtils.containsOnly("abab", "abc") = true
2329
     * StringUtils.containsOnly("ab1", "abc")  = false
2330
     * StringUtils.containsOnly("abz", "abc")  = false
2331
     * </pre>
2332
     *
2333
     * @param cs  the CharSequence to check, may be null
2334
     * @param validChars  a String of valid chars, may be null
2335
     * @return true if it only contains valid chars and is non-null
2336
     * @since 2.0
2337
     * @since 3.0 Changed signature from containsOnly(String, String) to containsOnly(CharSequence, String)
2338
     */
2339
    public static boolean containsOnly(final CharSequence cs, final String validChars) {
2340 2 1. containsOnly : negated conditional → KILLED
2. containsOnly : negated conditional → KILLED
        if (cs == null || validChars == null) {
2341 1 1. containsOnly : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
2342
        }
2343 1 1. containsOnly : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return containsOnly(cs, validChars.toCharArray());
2344
    }
2345
2346
    // ContainsNone
2347
    //-----------------------------------------------------------------------
2348
    /**
2349
     * <p>Checks that the CharSequence does not contain certain characters.</p>
2350
     *
2351
     * <p>A {@code null} CharSequence will return {@code true}.
2352
     * A {@code null} invalid character array will return {@code true}.
2353
     * An empty CharSequence (length()=0) always returns true.</p>
2354
     *
2355
     * <pre>
2356
     * StringUtils.containsNone(null, *)       = true
2357
     * StringUtils.containsNone(*, null)       = true
2358
     * StringUtils.containsNone("", *)         = true
2359
     * StringUtils.containsNone("ab", '')      = true
2360
     * StringUtils.containsNone("abab", 'xyz') = true
2361
     * StringUtils.containsNone("ab1", 'xyz')  = true
2362
     * StringUtils.containsNone("abz", 'xyz')  = false
2363
     * </pre>
2364
     *
2365
     * @param cs  the CharSequence to check, may be null
2366
     * @param searchChars  an array of invalid chars, may be null
2367
     * @return true if it contains none of the invalid chars, or is null
2368
     * @since 2.0
2369
     * @since 3.0 Changed signature from containsNone(String, char[]) to containsNone(CharSequence, char...)
2370
     */
2371
    public static boolean containsNone(final CharSequence cs, final char... searchChars) {
2372 2 1. containsNone : negated conditional → KILLED
2. containsNone : negated conditional → KILLED
        if (cs == null || searchChars == null) {
2373 1 1. containsNone : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return true;
2374
        }
2375
        final int csLen = cs.length();
2376 1 1. containsNone : Replaced integer subtraction with addition → KILLED
        final int csLast = csLen - 1;
2377
        final int searchLen = searchChars.length;
2378 1 1. containsNone : Replaced integer subtraction with addition → KILLED
        final int searchLast = searchLen - 1;
2379 3 1. containsNone : changed conditional boundary → KILLED
2. containsNone : Changed increment from 1 to -1 → KILLED
3. containsNone : negated conditional → KILLED
        for (int i = 0; i < csLen; i++) {
2380
            final char ch = cs.charAt(i);
2381 3 1. containsNone : changed conditional boundary → KILLED
2. containsNone : Changed increment from 1 to -1 → KILLED
3. containsNone : negated conditional → KILLED
            for (int j = 0; j < searchLen; j++) {
2382 1 1. containsNone : negated conditional → KILLED
                if (searchChars[j] == ch) {
2383 1 1. containsNone : negated conditional → KILLED
                    if (Character.isHighSurrogate(ch)) {
2384 1 1. containsNone : negated conditional → KILLED
                        if (j == searchLast) {
2385
                            // missing low surrogate, fine, like String.indexOf(String)
2386 1 1. containsNone : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                            return false;
2387
                        }
2388 5 1. containsNone : changed conditional boundary → KILLED
2. containsNone : Replaced integer addition with subtraction → KILLED
3. containsNone : Replaced integer addition with subtraction → KILLED
4. containsNone : negated conditional → KILLED
5. containsNone : negated conditional → KILLED
                        if (i < csLast && searchChars[j + 1] == cs.charAt(i + 1)) {
2389 1 1. containsNone : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                            return false;
2390
                        }
2391
                    } else {
2392
                        // ch is in the Basic Multilingual Plane
2393 1 1. containsNone : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                        return false;
2394
                    }
2395
                }
2396
            }
2397
        }
2398 1 1. containsNone : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
2399
    }
2400
2401
    /**
2402
     * <p>Checks that the CharSequence does not contain certain characters.</p>
2403
     *
2404
     * <p>A {@code null} CharSequence will return {@code true}.
2405
     * A {@code null} invalid character array will return {@code true}.
2406
     * An empty String ("") always returns true.</p>
2407
     *
2408
     * <pre>
2409
     * StringUtils.containsNone(null, *)       = true
2410
     * StringUtils.containsNone(*, null)       = true
2411
     * StringUtils.containsNone("", *)         = true
2412
     * StringUtils.containsNone("ab", "")      = true
2413
     * StringUtils.containsNone("abab", "xyz") = true
2414
     * StringUtils.containsNone("ab1", "xyz")  = true
2415
     * StringUtils.containsNone("abz", "xyz")  = false
2416
     * </pre>
2417
     *
2418
     * @param cs  the CharSequence to check, may be null
2419
     * @param invalidChars  a String of invalid chars, may be null
2420
     * @return true if it contains none of the invalid chars, or is null
2421
     * @since 2.0
2422
     * @since 3.0 Changed signature from containsNone(String, String) to containsNone(CharSequence, String)
2423
     */
2424
    public static boolean containsNone(final CharSequence cs, final String invalidChars) {
2425 2 1. containsNone : negated conditional → KILLED
2. containsNone : negated conditional → KILLED
        if (cs == null || invalidChars == null) {
2426 1 1. containsNone : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return true;
2427
        }
2428 1 1. containsNone : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return containsNone(cs, invalidChars.toCharArray());
2429
    }
2430
2431
    // IndexOfAny strings
2432
    //-----------------------------------------------------------------------
2433
    /**
2434
     * <p>Find the first index of any of a set of potential substrings.</p>
2435
     *
2436
     * <p>A {@code null} CharSequence will return {@code -1}.
2437
     * A {@code null} or zero length search array will return {@code -1}.
2438
     * A {@code null} search array entry will be ignored, but a search
2439
     * array containing "" will return {@code 0} if {@code str} is not
2440
     * null. This method uses {@link String#indexOf(String)} if possible.</p>
2441
     *
2442
     * <pre>
2443
     * StringUtils.indexOfAny(null, *)                     = -1
2444
     * StringUtils.indexOfAny(*, null)                     = -1
2445
     * StringUtils.indexOfAny(*, [])                       = -1
2446
     * StringUtils.indexOfAny("zzabyycdxx", ["ab","cd"])   = 2
2447
     * StringUtils.indexOfAny("zzabyycdxx", ["cd","ab"])   = 2
2448
     * StringUtils.indexOfAny("zzabyycdxx", ["mn","op"])   = -1
2449
     * StringUtils.indexOfAny("zzabyycdxx", ["zab","aby"]) = 1
2450
     * StringUtils.indexOfAny("zzabyycdxx", [""])          = 0
2451
     * StringUtils.indexOfAny("", [""])                    = 0
2452
     * StringUtils.indexOfAny("", ["a"])                   = -1
2453
     * </pre>
2454
     *
2455
     * @param str  the CharSequence to check, may be null
2456
     * @param searchStrs  the CharSequences to search for, may be null
2457
     * @return the first index of any of the searchStrs in str, -1 if no match
2458
     * @since 3.0 Changed signature from indexOfAny(String, String[]) to indexOfAny(CharSequence, CharSequence...)
2459
     */
2460
    public static int indexOfAny(final CharSequence str, final CharSequence... searchStrs) {
2461 2 1. indexOfAny : negated conditional → KILLED
2. indexOfAny : negated conditional → KILLED
        if (str == null || searchStrs == null) {
2462 1 1. indexOfAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
2463
        }
2464
2465
        // String's can't have a MAX_VALUEth index.
2466
        int ret = Integer.MAX_VALUE;
2467
2468
        int tmp = 0;
2469 3 1. indexOfAny : changed conditional boundary → KILLED
2. indexOfAny : Changed increment from 1 to -1 → KILLED
3. indexOfAny : negated conditional → KILLED
        for (final CharSequence search : searchStrs) {
2470 1 1. indexOfAny : negated conditional → KILLED
            if (search == null) {
2471
                continue;
2472
            }
2473
            tmp = CharSequenceUtils.indexOf(str, search, 0);
2474 1 1. indexOfAny : negated conditional → KILLED
            if (tmp == INDEX_NOT_FOUND) {
2475
                continue;
2476
            }
2477
2478 2 1. indexOfAny : changed conditional boundary → SURVIVED
2. indexOfAny : negated conditional → KILLED
            if (tmp < ret) {
2479
                ret = tmp;
2480
            }
2481
        }
2482
2483 2 1. indexOfAny : negated conditional → KILLED
2. indexOfAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return ret == Integer.MAX_VALUE ? INDEX_NOT_FOUND : ret;
2484
    }
2485
2486
    /**
2487
     * <p>Find the latest index of any of a set of potential substrings.</p>
2488
     *
2489
     * <p>A {@code null} CharSequence will return {@code -1}.
2490
     * A {@code null} search array will return {@code -1}.
2491
     * A {@code null} or zero length search array entry will be ignored,
2492
     * but a search array containing "" will return the length of {@code str}
2493
     * if {@code str} is not null. This method uses {@link String#indexOf(String)} if possible</p>
2494
     *
2495
     * <pre>
2496
     * StringUtils.lastIndexOfAny(null, *)                   = -1
2497
     * StringUtils.lastIndexOfAny(*, null)                   = -1
2498
     * StringUtils.lastIndexOfAny(*, [])                     = -1
2499
     * StringUtils.lastIndexOfAny(*, [null])                 = -1
2500
     * StringUtils.lastIndexOfAny("zzabyycdxx", ["ab","cd"]) = 6
2501
     * StringUtils.lastIndexOfAny("zzabyycdxx", ["cd","ab"]) = 6
2502
     * StringUtils.lastIndexOfAny("zzabyycdxx", ["mn","op"]) = -1
2503
     * StringUtils.lastIndexOfAny("zzabyycdxx", ["mn","op"]) = -1
2504
     * StringUtils.lastIndexOfAny("zzabyycdxx", ["mn",""])   = 10
2505
     * </pre>
2506
     *
2507
     * @param str  the CharSequence to check, may be null
2508
     * @param searchStrs  the CharSequences to search for, may be null
2509
     * @return the last index of any of the CharSequences, -1 if no match
2510
     * @since 3.0 Changed signature from lastIndexOfAny(String, String[]) to lastIndexOfAny(CharSequence, CharSequence)
2511
     */
2512
    public static int lastIndexOfAny(final CharSequence str, final CharSequence... searchStrs) {
2513 2 1. lastIndexOfAny : negated conditional → KILLED
2. lastIndexOfAny : negated conditional → KILLED
        if (str == null || searchStrs == null) {
2514 1 1. lastIndexOfAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
2515
        }
2516
        int ret = INDEX_NOT_FOUND;
2517
        int tmp = 0;
2518 3 1. lastIndexOfAny : changed conditional boundary → KILLED
2. lastIndexOfAny : Changed increment from 1 to -1 → KILLED
3. lastIndexOfAny : negated conditional → KILLED
        for (final CharSequence search : searchStrs) {
2519 1 1. lastIndexOfAny : negated conditional → KILLED
            if (search == null) {
2520
                continue;
2521
            }
2522
            tmp = CharSequenceUtils.lastIndexOf(str, search, str.length());
2523 2 1. lastIndexOfAny : changed conditional boundary → SURVIVED
2. lastIndexOfAny : negated conditional → KILLED
            if (tmp > ret) {
2524
                ret = tmp;
2525
            }
2526
        }
2527 1 1. lastIndexOfAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return ret;
2528
    }
2529
2530
    // Substring
2531
    //-----------------------------------------------------------------------
2532
    /**
2533
     * <p>Gets a substring from the specified String avoiding exceptions.</p>
2534
     *
2535
     * <p>A negative start position can be used to start {@code n}
2536
     * characters from the end of the String.</p>
2537
     *
2538
     * <p>A {@code null} String will return {@code null}.
2539
     * An empty ("") String will return "".</p>
2540
     *
2541
     * <pre>
2542
     * StringUtils.substring(null, *)   = null
2543
     * StringUtils.substring("", *)     = ""
2544
     * StringUtils.substring("abc", 0)  = "abc"
2545
     * StringUtils.substring("abc", 2)  = "c"
2546
     * StringUtils.substring("abc", 4)  = ""
2547
     * StringUtils.substring("abc", -2) = "bc"
2548
     * StringUtils.substring("abc", -4) = "abc"
2549
     * </pre>
2550
     *
2551
     * @param str  the String to get the substring from, may be null
2552
     * @param start  the position to start from, negative means
2553
     *  count back from the end of the String by this many characters
2554
     * @return substring from start position, {@code null} if null String input
2555
     */
2556
    public static String substring(final String str, int start) {
2557 1 1. substring : negated conditional → KILLED
        if (str == null) {
2558 1 1. substring : mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
2559
        }
2560
2561
        // handle negatives, which means last n characters
2562 2 1. substring : changed conditional boundary → KILLED
2. substring : negated conditional → KILLED
        if (start < 0) {
2563 1 1. substring : Replaced integer addition with subtraction → KILLED
            start = str.length() + start; // remember start is negative
2564
        }
2565
2566 2 1. substring : changed conditional boundary → SURVIVED
2. substring : negated conditional → KILLED
        if (start < 0) {
2567
            start = 0;
2568
        }
2569 2 1. substring : changed conditional boundary → SURVIVED
2. substring : negated conditional → KILLED
        if (start > str.length()) {
2570 1 1. substring : mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
2571
        }
2572
2573 1 1. substring : mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(start);
2574
    }
2575
2576
    /**
2577
     * <p>Gets a substring from the specified String avoiding exceptions.</p>
2578
     *
2579
     * <p>A negative start position can be used to start/end {@code n}
2580
     * characters from the end of the String.</p>
2581
     *
2582
     * <p>The returned substring starts with the character in the {@code start}
2583
     * position and ends before the {@code end} position. All position counting is
2584
     * zero-based -- i.e., to start at the beginning of the string use
2585
     * {@code start = 0}. Negative start and end positions can be used to
2586
     * specify offsets relative to the end of the String.</p>
2587
     *
2588
     * <p>If {@code start} is not strictly to the left of {@code end}, ""
2589
     * is returned.</p>
2590
     *
2591
     * <pre>
2592
     * StringUtils.substring(null, *, *)    = null
2593
     * StringUtils.substring("", * ,  *)    = "";
2594
     * StringUtils.substring("abc", 0, 2)   = "ab"
2595
     * StringUtils.substring("abc", 2, 0)   = ""
2596
     * StringUtils.substring("abc", 2, 4)   = "c"
2597
     * StringUtils.substring("abc", 4, 6)   = ""
2598
     * StringUtils.substring("abc", 2, 2)   = ""
2599
     * StringUtils.substring("abc", -2, -1) = "b"
2600
     * StringUtils.substring("abc", -4, 2)  = "ab"
2601
     * </pre>
2602
     *
2603
     * @param str  the String to get the substring from, may be null
2604
     * @param start  the position to start from, negative means
2605
     *  count back from the end of the String by this many characters
2606
     * @param end  the position to end at (exclusive), negative means
2607
     *  count back from the end of the String by this many characters
2608
     * @return substring from start position to end position,
2609
     *  {@code null} if null String input
2610
     */
2611
    public static String substring(final String str, int start, int end) {
2612 1 1. substring : negated conditional → KILLED
        if (str == null) {
2613 1 1. substring : mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
2614
        }
2615
2616
        // handle negatives
2617 2 1. substring : changed conditional boundary → SURVIVED
2. substring : negated conditional → KILLED
        if (end < 0) {
2618 1 1. substring : Replaced integer addition with subtraction → KILLED
            end = str.length() + end; // remember end is negative
2619
        }
2620 2 1. substring : changed conditional boundary → KILLED
2. substring : negated conditional → KILLED
        if (start < 0) {
2621 1 1. substring : Replaced integer addition with subtraction → KILLED
            start = str.length() + start; // remember start is negative
2622
        }
2623
2624
        // check length next
2625 2 1. substring : changed conditional boundary → SURVIVED
2. substring : negated conditional → KILLED
        if (end > str.length()) {
2626
            end = str.length();
2627
        }
2628
2629
        // if start is greater than end, return ""
2630 2 1. substring : changed conditional boundary → SURVIVED
2. substring : negated conditional → KILLED
        if (start > end) {
2631 1 1. substring : mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
2632
        }
2633
2634 2 1. substring : changed conditional boundary → SURVIVED
2. substring : negated conditional → KILLED
        if (start < 0) {
2635
            start = 0;
2636
        }
2637 2 1. substring : changed conditional boundary → SURVIVED
2. substring : negated conditional → KILLED
        if (end < 0) {
2638
            end = 0;
2639
        }
2640
2641 1 1. substring : mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(start, end);
2642
    }
2643
2644
    // Left/Right/Mid
2645
    //-----------------------------------------------------------------------
2646
    /**
2647
     * <p>Gets the leftmost {@code len} characters of a String.</p>
2648
     *
2649
     * <p>If {@code len} characters are not available, or the
2650
     * String is {@code null}, the String will be returned without
2651
     * an exception. An empty String is returned if len is negative.</p>
2652
     *
2653
     * <pre>
2654
     * StringUtils.left(null, *)    = null
2655
     * StringUtils.left(*, -ve)     = ""
2656
     * StringUtils.left("", *)      = ""
2657
     * StringUtils.left("abc", 0)   = ""
2658
     * StringUtils.left("abc", 2)   = "ab"
2659
     * StringUtils.left("abc", 4)   = "abc"
2660
     * </pre>
2661
     *
2662
     * @param str  the String to get the leftmost characters from, may be null
2663
     * @param len  the length of the required String
2664
     * @return the leftmost characters, {@code null} if null String input
2665
     */
2666
    public static String left(final String str, final int len) {
2667 1 1. left : negated conditional → KILLED
        if (str == null) {
2668 1 1. left : mutated return of Object value for org/apache/commons/lang3/StringUtils::left to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
2669
        }
2670 2 1. left : changed conditional boundary → SURVIVED
2. left : negated conditional → KILLED
        if (len < 0) {
2671 1 1. left : mutated return of Object value for org/apache/commons/lang3/StringUtils::left to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
2672
        }
2673 2 1. left : changed conditional boundary → SURVIVED
2. left : negated conditional → KILLED
        if (str.length() <= len) {
2674 1 1. left : mutated return of Object value for org/apache/commons/lang3/StringUtils::left to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
2675
        }
2676 1 1. left : mutated return of Object value for org/apache/commons/lang3/StringUtils::left to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(0, len);
2677
    }
2678
2679
    /**
2680
     * <p>Gets the rightmost {@code len} characters of a String.</p>
2681
     *
2682
     * <p>If {@code len} characters are not available, or the String
2683
     * is {@code null}, the String will be returned without an
2684
     * an exception. An empty String is returned if len is negative.</p>
2685
     *
2686
     * <pre>
2687
     * StringUtils.right(null, *)    = null
2688
     * StringUtils.right(*, -ve)     = ""
2689
     * StringUtils.right("", *)      = ""
2690
     * StringUtils.right("abc", 0)   = ""
2691
     * StringUtils.right("abc", 2)   = "bc"
2692
     * StringUtils.right("abc", 4)   = "abc"
2693
     * </pre>
2694
     *
2695
     * @param str  the String to get the rightmost characters from, may be null
2696
     * @param len  the length of the required String
2697
     * @return the rightmost characters, {@code null} if null String input
2698
     */
2699
    public static String right(final String str, final int len) {
2700 1 1. right : negated conditional → KILLED
        if (str == null) {
2701 1 1. right : mutated return of Object value for org/apache/commons/lang3/StringUtils::right to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
2702
        }
2703 2 1. right : changed conditional boundary → SURVIVED
2. right : negated conditional → KILLED
        if (len < 0) {
2704 1 1. right : mutated return of Object value for org/apache/commons/lang3/StringUtils::right to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
2705
        }
2706 2 1. right : changed conditional boundary → SURVIVED
2. right : negated conditional → KILLED
        if (str.length() <= len) {
2707 1 1. right : mutated return of Object value for org/apache/commons/lang3/StringUtils::right to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
2708
        }
2709 2 1. right : Replaced integer subtraction with addition → KILLED
2. right : mutated return of Object value for org/apache/commons/lang3/StringUtils::right to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(str.length() - len);
2710
    }
2711
2712
    /**
2713
     * <p>Gets {@code len} characters from the middle of a String.</p>
2714
     *
2715
     * <p>If {@code len} characters are not available, the remainder
2716
     * of the String will be returned without an exception. If the
2717
     * String is {@code null}, {@code null} will be returned.
2718
     * An empty String is returned if len is negative or exceeds the
2719
     * length of {@code str}.</p>
2720
     *
2721
     * <pre>
2722
     * StringUtils.mid(null, *, *)    = null
2723
     * StringUtils.mid(*, *, -ve)     = ""
2724
     * StringUtils.mid("", 0, *)      = ""
2725
     * StringUtils.mid("abc", 0, 2)   = "ab"
2726
     * StringUtils.mid("abc", 0, 4)   = "abc"
2727
     * StringUtils.mid("abc", 2, 4)   = "c"
2728
     * StringUtils.mid("abc", 4, 2)   = ""
2729
     * StringUtils.mid("abc", -2, 2)  = "ab"
2730
     * </pre>
2731
     *
2732
     * @param str  the String to get the characters from, may be null
2733
     * @param pos  the position to start from, negative treated as zero
2734
     * @param len  the length of the required String
2735
     * @return the middle characters, {@code null} if null String input
2736
     */
2737
    public static String mid(final String str, int pos, final int len) {
2738 1 1. mid : negated conditional → KILLED
        if (str == null) {
2739 1 1. mid : mutated return of Object value for org/apache/commons/lang3/StringUtils::mid to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
2740
        }
2741 4 1. mid : changed conditional boundary → SURVIVED
2. mid : changed conditional boundary → SURVIVED
3. mid : negated conditional → KILLED
4. mid : negated conditional → KILLED
        if (len < 0 || pos > str.length()) {
2742 1 1. mid : mutated return of Object value for org/apache/commons/lang3/StringUtils::mid to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
2743
        }
2744 2 1. mid : changed conditional boundary → SURVIVED
2. mid : negated conditional → KILLED
        if (pos < 0) {
2745
            pos = 0;
2746
        }
2747 3 1. mid : changed conditional boundary → SURVIVED
2. mid : Replaced integer addition with subtraction → KILLED
3. mid : negated conditional → KILLED
        if (str.length() <= pos + len) {
2748 1 1. mid : mutated return of Object value for org/apache/commons/lang3/StringUtils::mid to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str.substring(pos);
2749
        }
2750 2 1. mid : Replaced integer addition with subtraction → KILLED
2. mid : mutated return of Object value for org/apache/commons/lang3/StringUtils::mid to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(pos, pos + len);
2751
    }
2752
2753
    // SubStringAfter/SubStringBefore
2754
    //-----------------------------------------------------------------------
2755
    /**
2756
     * <p>Gets the substring before the first occurrence of a separator.
2757
     * The separator is not returned.</p>
2758
     *
2759
     * <p>A {@code null} string input will return {@code null}.
2760
     * An empty ("") string input will return the empty string.
2761
     * A {@code null} separator will return the input string.</p>
2762
     *
2763
     * <p>If nothing is found, the string input is returned.</p>
2764
     *
2765
     * <pre>
2766
     * StringUtils.substringBefore(null, *)      = null
2767
     * StringUtils.substringBefore("", *)        = ""
2768
     * StringUtils.substringBefore("abc", "a")   = ""
2769
     * StringUtils.substringBefore("abcba", "b") = "a"
2770
     * StringUtils.substringBefore("abc", "c")   = "ab"
2771
     * StringUtils.substringBefore("abc", "d")   = "abc"
2772
     * StringUtils.substringBefore("abc", "")    = ""
2773
     * StringUtils.substringBefore("abc", null)  = "abc"
2774
     * </pre>
2775
     *
2776
     * @param str  the String to get a substring from, may be null
2777
     * @param separator  the String to search for, may be null
2778
     * @return the substring before the first occurrence of the separator,
2779
     *  {@code null} if null String input
2780
     * @since 2.0
2781
     */
2782
    public static String substringBefore(final String str, final String separator) {
2783 2 1. substringBefore : negated conditional → KILLED
2. substringBefore : negated conditional → KILLED
        if (isEmpty(str) || separator == null) {
2784 1 1. substringBefore : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBefore to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
2785
        }
2786 1 1. substringBefore : negated conditional → KILLED
        if (separator.isEmpty()) {
2787 1 1. substringBefore : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBefore to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
2788
        }
2789
        final int pos = str.indexOf(separator);
2790 1 1. substringBefore : negated conditional → KILLED
        if (pos == INDEX_NOT_FOUND) {
2791 1 1. substringBefore : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBefore to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
2792
        }
2793 1 1. substringBefore : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBefore to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(0, pos);
2794
    }
2795
2796
    /**
2797
     * <p>Gets the substring after the first occurrence of a separator.
2798
     * The separator is not returned.</p>
2799
     *
2800
     * <p>A {@code null} string input will return {@code null}.
2801
     * An empty ("") string input will return the empty string.
2802
     * A {@code null} separator will return the empty string if the
2803
     * input string is not {@code null}.</p>
2804
     *
2805
     * <p>If nothing is found, the empty string is returned.</p>
2806
     *
2807
     * <pre>
2808
     * StringUtils.substringAfter(null, *)      = null
2809
     * StringUtils.substringAfter("", *)        = ""
2810
     * StringUtils.substringAfter(*, null)      = ""
2811
     * StringUtils.substringAfter("abc", "a")   = "bc"
2812
     * StringUtils.substringAfter("abcba", "b") = "cba"
2813
     * StringUtils.substringAfter("abc", "c")   = ""
2814
     * StringUtils.substringAfter("abc", "d")   = ""
2815
     * StringUtils.substringAfter("abc", "")    = "abc"
2816
     * </pre>
2817
     *
2818
     * @param str  the String to get a substring from, may be null
2819
     * @param separator  the String to search for, may be null
2820
     * @return the substring after the first occurrence of the separator,
2821
     *  {@code null} if null String input
2822
     * @since 2.0
2823
     */
2824
    public static String substringAfter(final String str, final String separator) {
2825 1 1. substringAfter : negated conditional → KILLED
        if (isEmpty(str)) {
2826 1 1. substringAfter : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfter to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
2827
        }
2828 1 1. substringAfter : negated conditional → KILLED
        if (separator == null) {
2829 1 1. substringAfter : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfter to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
2830
        }
2831
        final int pos = str.indexOf(separator);
2832 1 1. substringAfter : negated conditional → KILLED
        if (pos == INDEX_NOT_FOUND) {
2833 1 1. substringAfter : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfter to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
2834
        }
2835 2 1. substringAfter : Replaced integer addition with subtraction → KILLED
2. substringAfter : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfter to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(pos + separator.length());
2836
    }
2837
2838
    /**
2839
     * <p>Gets the substring before the last occurrence of a separator.
2840
     * The separator is not returned.</p>
2841
     *
2842
     * <p>A {@code null} string input will return {@code null}.
2843
     * An empty ("") string input will return the empty string.
2844
     * An empty or {@code null} separator will return the input string.</p>
2845
     *
2846
     * <p>If nothing is found, the string input is returned.</p>
2847
     *
2848
     * <pre>
2849
     * StringUtils.substringBeforeLast(null, *)      = null
2850
     * StringUtils.substringBeforeLast("", *)        = ""
2851
     * StringUtils.substringBeforeLast("abcba", "b") = "abc"
2852
     * StringUtils.substringBeforeLast("abc", "c")   = "ab"
2853
     * StringUtils.substringBeforeLast("a", "a")     = ""
2854
     * StringUtils.substringBeforeLast("a", "z")     = "a"
2855
     * StringUtils.substringBeforeLast("a", null)    = "a"
2856
     * StringUtils.substringBeforeLast("a", "")      = "a"
2857
     * </pre>
2858
     *
2859
     * @param str  the String to get a substring from, may be null
2860
     * @param separator  the String to search for, may be null
2861
     * @return the substring before the last occurrence of the separator,
2862
     *  {@code null} if null String input
2863
     * @since 2.0
2864
     */
2865
    public static String substringBeforeLast(final String str, final String separator) {
2866 2 1. substringBeforeLast : negated conditional → KILLED
2. substringBeforeLast : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(separator)) {
2867 1 1. substringBeforeLast : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBeforeLast to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
2868
        }
2869
        final int pos = str.lastIndexOf(separator);
2870 1 1. substringBeforeLast : negated conditional → KILLED
        if (pos == INDEX_NOT_FOUND) {
2871 1 1. substringBeforeLast : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBeforeLast to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
2872
        }
2873 1 1. substringBeforeLast : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBeforeLast to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(0, pos);
2874
    }
2875
2876
    /**
2877
     * <p>Gets the substring after the last occurrence of a separator.
2878
     * The separator is not returned.</p>
2879
     *
2880
     * <p>A {@code null} string input will return {@code null}.
2881
     * An empty ("") string input will return the empty string.
2882
     * An empty or {@code null} separator will return the empty string if
2883
     * the input string is not {@code null}.</p>
2884
     *
2885
     * <p>If nothing is found, the empty string is returned.</p>
2886
     *
2887
     * <pre>
2888
     * StringUtils.substringAfterLast(null, *)      = null
2889
     * StringUtils.substringAfterLast("", *)        = ""
2890
     * StringUtils.substringAfterLast(*, "")        = ""
2891
     * StringUtils.substringAfterLast(*, null)      = ""
2892
     * StringUtils.substringAfterLast("abc", "a")   = "bc"
2893
     * StringUtils.substringAfterLast("abcba", "b") = "a"
2894
     * StringUtils.substringAfterLast("abc", "c")   = ""
2895
     * StringUtils.substringAfterLast("a", "a")     = ""
2896
     * StringUtils.substringAfterLast("a", "z")     = ""
2897
     * </pre>
2898
     *
2899
     * @param str  the String to get a substring from, may be null
2900
     * @param separator  the String to search for, may be null
2901
     * @return the substring after the last occurrence of the separator,
2902
     *  {@code null} if null String input
2903
     * @since 2.0
2904
     */
2905
    public static String substringAfterLast(final String str, final String separator) {
2906 1 1. substringAfterLast : negated conditional → KILLED
        if (isEmpty(str)) {
2907 1 1. substringAfterLast : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfterLast to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
2908
        }
2909 1 1. substringAfterLast : negated conditional → KILLED
        if (isEmpty(separator)) {
2910 1 1. substringAfterLast : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfterLast to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
2911
        }
2912
        final int pos = str.lastIndexOf(separator);
2913 3 1. substringAfterLast : Replaced integer subtraction with addition → SURVIVED
2. substringAfterLast : negated conditional → KILLED
3. substringAfterLast : negated conditional → KILLED
        if (pos == INDEX_NOT_FOUND || pos == str.length() - separator.length()) {
2914 1 1. substringAfterLast : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfterLast to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
2915
        }
2916 2 1. substringAfterLast : Replaced integer addition with subtraction → KILLED
2. substringAfterLast : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfterLast to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(pos + separator.length());
2917
    }
2918
2919
    // Substring between
2920
    //-----------------------------------------------------------------------
2921
    /**
2922
     * <p>Gets the String that is nested in between two instances of the
2923
     * same String.</p>
2924
     *
2925
     * <p>A {@code null} input String returns {@code null}.
2926
     * A {@code null} tag returns {@code null}.</p>
2927
     *
2928
     * <pre>
2929
     * StringUtils.substringBetween(null, *)            = null
2930
     * StringUtils.substringBetween("", "")             = ""
2931
     * StringUtils.substringBetween("", "tag")          = null
2932
     * StringUtils.substringBetween("tagabctag", null)  = null
2933
     * StringUtils.substringBetween("tagabctag", "")    = ""
2934
     * StringUtils.substringBetween("tagabctag", "tag") = "abc"
2935
     * </pre>
2936
     *
2937
     * @param str  the String containing the substring, may be null
2938
     * @param tag  the String before and after the substring, may be null
2939
     * @return the substring, {@code null} if no match
2940
     * @since 2.0
2941
     */
2942
    public static String substringBetween(final String str, final String tag) {
2943 1 1. substringBetween : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return substringBetween(str, tag, tag);
2944
    }
2945
2946
    /**
2947
     * <p>Gets the String that is nested in between two Strings.
2948
     * Only the first match is returned.</p>
2949
     *
2950
     * <p>A {@code null} input String returns {@code null}.
2951
     * A {@code null} open/close returns {@code null} (no match).
2952
     * An empty ("") open and close returns an empty string.</p>
2953
     *
2954
     * <pre>
2955
     * StringUtils.substringBetween("wx[b]yz", "[", "]") = "b"
2956
     * StringUtils.substringBetween(null, *, *)          = null
2957
     * StringUtils.substringBetween(*, null, *)          = null
2958
     * StringUtils.substringBetween(*, *, null)          = null
2959
     * StringUtils.substringBetween("", "", "")          = ""
2960
     * StringUtils.substringBetween("", "", "]")         = null
2961
     * StringUtils.substringBetween("", "[", "]")        = null
2962
     * StringUtils.substringBetween("yabcz", "", "")     = ""
2963
     * StringUtils.substringBetween("yabcz", "y", "z")   = "abc"
2964
     * StringUtils.substringBetween("yabczyabcz", "y", "z")   = "abc"
2965
     * </pre>
2966
     *
2967
     * @param str  the String containing the substring, may be null
2968
     * @param open  the String before the substring, may be null
2969
     * @param close  the String after the substring, may be null
2970
     * @return the substring, {@code null} if no match
2971
     * @since 2.0
2972
     */
2973
    public static String substringBetween(final String str, final String open, final String close) {
2974 3 1. substringBetween : negated conditional → KILLED
2. substringBetween : negated conditional → KILLED
3. substringBetween : negated conditional → KILLED
        if (str == null || open == null || close == null) {
2975 1 1. substringBetween : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
2976
        }
2977
        final int start = str.indexOf(open);
2978 1 1. substringBetween : negated conditional → KILLED
        if (start != INDEX_NOT_FOUND) {
2979 1 1. substringBetween : Replaced integer addition with subtraction → KILLED
            final int end = str.indexOf(close, start + open.length());
2980 1 1. substringBetween : negated conditional → KILLED
            if (end != INDEX_NOT_FOUND) {
2981 2 1. substringBetween : Replaced integer addition with subtraction → KILLED
2. substringBetween : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return str.substring(start + open.length(), end);
2982
            }
2983
        }
2984 1 1. substringBetween : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return null;
2985
    }
2986
2987
    /**
2988
     * <p>Searches a String for substrings delimited by a start and end tag,
2989
     * returning all matching substrings in an array.</p>
2990
     *
2991
     * <p>A {@code null} input String returns {@code null}.
2992
     * A {@code null} open/close returns {@code null} (no match).
2993
     * An empty ("") open/close returns {@code null} (no match).</p>
2994
     *
2995
     * <pre>
2996
     * StringUtils.substringsBetween("[a][b][c]", "[", "]") = ["a","b","c"]
2997
     * StringUtils.substringsBetween(null, *, *)            = null
2998
     * StringUtils.substringsBetween(*, null, *)            = null
2999
     * StringUtils.substringsBetween(*, *, null)            = null
3000
     * StringUtils.substringsBetween("", "[", "]")          = []
3001
     * </pre>
3002
     *
3003
     * @param str  the String containing the substrings, null returns null, empty returns empty
3004
     * @param open  the String identifying the start of the substring, empty returns null
3005
     * @param close  the String identifying the end of the substring, empty returns null
3006
     * @return a String Array of substrings, or {@code null} if no match
3007
     * @since 2.3
3008
     */
3009
    public static String[] substringsBetween(final String str, final String open, final String close) {
3010 3 1. substringsBetween : negated conditional → KILLED
2. substringsBetween : negated conditional → KILLED
3. substringsBetween : negated conditional → KILLED
        if (str == null || isEmpty(open) || isEmpty(close)) {
3011 1 1. substringsBetween : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringsBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3012
        }
3013
        final int strLen = str.length();
3014 1 1. substringsBetween : negated conditional → KILLED
        if (strLen == 0) {
3015 1 1. substringsBetween : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringsBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return ArrayUtils.EMPTY_STRING_ARRAY;
3016
        }
3017
        final int closeLen = close.length();
3018
        final int openLen = open.length();
3019
        final List<String> list = new ArrayList<>();
3020
        int pos = 0;
3021 3 1. substringsBetween : changed conditional boundary → SURVIVED
2. substringsBetween : Replaced integer subtraction with addition → SURVIVED
3. substringsBetween : negated conditional → KILLED
        while (pos < strLen - closeLen) {
3022
            int start = str.indexOf(open, pos);
3023 2 1. substringsBetween : changed conditional boundary → KILLED
2. substringsBetween : negated conditional → KILLED
            if (start < 0) {
3024
                break;
3025
            }
3026 1 1. substringsBetween : Replaced integer addition with subtraction → KILLED
            start += openLen;
3027
            final int end = str.indexOf(close, start);
3028 2 1. substringsBetween : changed conditional boundary → SURVIVED
2. substringsBetween : negated conditional → KILLED
            if (end < 0) {
3029
                break;
3030
            }
3031
            list.add(str.substring(start, end));
3032 1 1. substringsBetween : Replaced integer addition with subtraction → KILLED
            pos = end + closeLen;
3033
        }
3034 1 1. substringsBetween : negated conditional → KILLED
        if (list.isEmpty()) {
3035 1 1. substringsBetween : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringsBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3036
        }
3037 1 1. substringsBetween : mutated return of Object value for org/apache/commons/lang3/StringUtils::substringsBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return list.toArray(new String [list.size()]);
3038
    }
3039
3040
    // Nested extraction
3041
    //-----------------------------------------------------------------------
3042
3043
    // Splitting
3044
    //-----------------------------------------------------------------------
3045
    /**
3046
     * <p>Splits the provided text into an array, using whitespace as the
3047
     * separator.
3048
     * Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
3049
     *
3050
     * <p>The separator is not included in the returned String array.
3051
     * Adjacent separators are treated as one separator.
3052
     * For more control over the split use the StrTokenizer class.</p>
3053
     *
3054
     * <p>A {@code null} input String returns {@code null}.</p>
3055
     *
3056
     * <pre>
3057
     * StringUtils.split(null)       = null
3058
     * StringUtils.split("")         = []
3059
     * StringUtils.split("abc def")  = ["abc", "def"]
3060
     * StringUtils.split("abc  def") = ["abc", "def"]
3061
     * StringUtils.split(" abc ")    = ["abc"]
3062
     * </pre>
3063
     *
3064
     * @param str  the String to parse, may be null
3065
     * @return an array of parsed Strings, {@code null} if null String input
3066
     */
3067
    public static String[] split(final String str) {
3068 1 1. split : mutated return of Object value for org/apache/commons/lang3/StringUtils::split to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return split(str, null, -1);
3069
    }
3070
3071
    /**
3072
     * <p>Splits the provided text into an array, separator specified.
3073
     * This is an alternative to using StringTokenizer.</p>
3074
     *
3075
     * <p>The separator is not included in the returned String array.
3076
     * Adjacent separators are treated as one separator.
3077
     * For more control over the split use the StrTokenizer class.</p>
3078
     *
3079
     * <p>A {@code null} input String returns {@code null}.</p>
3080
     *
3081
     * <pre>
3082
     * StringUtils.split(null, *)         = null
3083
     * StringUtils.split("", *)           = []
3084
     * StringUtils.split("a.b.c", '.')    = ["a", "b", "c"]
3085
     * StringUtils.split("a..b.c", '.')   = ["a", "b", "c"]
3086
     * StringUtils.split("a:b:c", '.')    = ["a:b:c"]
3087
     * StringUtils.split("a b c", ' ')    = ["a", "b", "c"]
3088
     * </pre>
3089
     *
3090
     * @param str  the String to parse, may be null
3091
     * @param separatorChar  the character used as the delimiter
3092
     * @return an array of parsed Strings, {@code null} if null String input
3093
     * @since 2.0
3094
     */
3095
    public static String[] split(final String str, final char separatorChar) {
3096 1 1. split : mutated return of Object value for org/apache/commons/lang3/StringUtils::split to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitWorker(str, separatorChar, false);
3097
    }
3098
3099
    /**
3100
     * <p>Splits the provided text into an array, separators specified.
3101
     * This is an alternative to using StringTokenizer.</p>
3102
     *
3103
     * <p>The separator is not included in the returned String array.
3104
     * Adjacent separators are treated as one separator.
3105
     * For more control over the split use the StrTokenizer class.</p>
3106
     *
3107
     * <p>A {@code null} input String returns {@code null}.
3108
     * A {@code null} separatorChars splits on whitespace.</p>
3109
     *
3110
     * <pre>
3111
     * StringUtils.split(null, *)         = null
3112
     * StringUtils.split("", *)           = []
3113
     * StringUtils.split("abc def", null) = ["abc", "def"]
3114
     * StringUtils.split("abc def", " ")  = ["abc", "def"]
3115
     * StringUtils.split("abc  def", " ") = ["abc", "def"]
3116
     * StringUtils.split("ab:cd:ef", ":") = ["ab", "cd", "ef"]
3117
     * </pre>
3118
     *
3119
     * @param str  the String to parse, may be null
3120
     * @param separatorChars  the characters used as the delimiters,
3121
     *  {@code null} splits on whitespace
3122
     * @return an array of parsed Strings, {@code null} if null String input
3123
     */
3124
    public static String[] split(final String str, final String separatorChars) {
3125 1 1. split : mutated return of Object value for org/apache/commons/lang3/StringUtils::split to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitWorker(str, separatorChars, -1, false);
3126
    }
3127
3128
    /**
3129
     * <p>Splits the provided text into an array with a maximum length,
3130
     * separators specified.</p>
3131
     *
3132
     * <p>The separator is not included in the returned String array.
3133
     * Adjacent separators are treated as one separator.</p>
3134
     *
3135
     * <p>A {@code null} input String returns {@code null}.
3136
     * A {@code null} separatorChars splits on whitespace.</p>
3137
     *
3138
     * <p>If more than {@code max} delimited substrings are found, the last
3139
     * returned string includes all characters after the first {@code max - 1}
3140
     * returned strings (including separator characters).</p>
3141
     *
3142
     * <pre>
3143
     * StringUtils.split(null, *, *)            = null
3144
     * StringUtils.split("", *, *)              = []
3145
     * StringUtils.split("ab cd ef", null, 0)   = ["ab", "cd", "ef"]
3146
     * StringUtils.split("ab   cd ef", null, 0) = ["ab", "cd", "ef"]
3147
     * StringUtils.split("ab:cd:ef", ":", 0)    = ["ab", "cd", "ef"]
3148
     * StringUtils.split("ab:cd:ef", ":", 2)    = ["ab", "cd:ef"]
3149
     * </pre>
3150
     *
3151
     * @param str  the String to parse, may be null
3152
     * @param separatorChars  the characters used as the delimiters,
3153
     *  {@code null} splits on whitespace
3154
     * @param max  the maximum number of elements to include in the
3155
     *  array. A zero or negative value implies no limit
3156
     * @return an array of parsed Strings, {@code null} if null String input
3157
     */
3158
    public static String[] split(final String str, final String separatorChars, final int max) {
3159 1 1. split : mutated return of Object value for org/apache/commons/lang3/StringUtils::split to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitWorker(str, separatorChars, max, false);
3160
    }
3161
3162
    /**
3163
     * <p>Splits the provided text into an array, separator string specified.</p>
3164
     *
3165
     * <p>The separator(s) will not be included in the returned String array.
3166
     * Adjacent separators are treated as one separator.</p>
3167
     *
3168
     * <p>A {@code null} input String returns {@code null}.
3169
     * A {@code null} separator splits on whitespace.</p>
3170
     *
3171
     * <pre>
3172
     * StringUtils.splitByWholeSeparator(null, *)               = null
3173
     * StringUtils.splitByWholeSeparator("", *)                 = []
3174
     * StringUtils.splitByWholeSeparator("ab de fg", null)      = ["ab", "de", "fg"]
3175
     * StringUtils.splitByWholeSeparator("ab   de fg", null)    = ["ab", "de", "fg"]
3176
     * StringUtils.splitByWholeSeparator("ab:cd:ef", ":")       = ["ab", "cd", "ef"]
3177
     * StringUtils.splitByWholeSeparator("ab-!-cd-!-ef", "-!-") = ["ab", "cd", "ef"]
3178
     * </pre>
3179
     *
3180
     * @param str  the String to parse, may be null
3181
     * @param separator  String containing the String to be used as a delimiter,
3182
     *  {@code null} splits on whitespace
3183
     * @return an array of parsed Strings, {@code null} if null String was input
3184
     */
3185
    public static String[] splitByWholeSeparator(final String str, final String separator) {
3186 1 1. splitByWholeSeparator : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparator to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitByWholeSeparatorWorker( str, separator, -1, false ) ;
3187
    }
3188
3189
    /**
3190
     * <p>Splits the provided text into an array, separator string specified.
3191
     * Returns a maximum of {@code max} substrings.</p>
3192
     *
3193
     * <p>The separator(s) will not be included in the returned String array.
3194
     * Adjacent separators are treated as one separator.</p>
3195
     *
3196
     * <p>A {@code null} input String returns {@code null}.
3197
     * A {@code null} separator splits on whitespace.</p>
3198
     *
3199
     * <pre>
3200
     * StringUtils.splitByWholeSeparator(null, *, *)               = null
3201
     * StringUtils.splitByWholeSeparator("", *, *)                 = []
3202
     * StringUtils.splitByWholeSeparator("ab de fg", null, 0)      = ["ab", "de", "fg"]
3203
     * StringUtils.splitByWholeSeparator("ab   de fg", null, 0)    = ["ab", "de", "fg"]
3204
     * StringUtils.splitByWholeSeparator("ab:cd:ef", ":", 2)       = ["ab", "cd:ef"]
3205
     * StringUtils.splitByWholeSeparator("ab-!-cd-!-ef", "-!-", 5) = ["ab", "cd", "ef"]
3206
     * StringUtils.splitByWholeSeparator("ab-!-cd-!-ef", "-!-", 2) = ["ab", "cd-!-ef"]
3207
     * </pre>
3208
     *
3209
     * @param str  the String to parse, may be null
3210
     * @param separator  String containing the String to be used as a delimiter,
3211
     *  {@code null} splits on whitespace
3212
     * @param max  the maximum number of elements to include in the returned
3213
     *  array. A zero or negative value implies no limit.
3214
     * @return an array of parsed Strings, {@code null} if null String was input
3215
     */
3216
    public static String[] splitByWholeSeparator( final String str, final String separator, final int max) {
3217 1 1. splitByWholeSeparator : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparator to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitByWholeSeparatorWorker(str, separator, max, false);
3218
    }
3219
3220
    /**
3221
     * <p>Splits the provided text into an array, separator string specified. </p>
3222
     *
3223
     * <p>The separator is not included in the returned String array.
3224
     * Adjacent separators are treated as separators for empty tokens.
3225
     * For more control over the split use the StrTokenizer class.</p>
3226
     *
3227
     * <p>A {@code null} input String returns {@code null}.
3228
     * A {@code null} separator splits on whitespace.</p>
3229
     *
3230
     * <pre>
3231
     * StringUtils.splitByWholeSeparatorPreserveAllTokens(null, *)               = null
3232
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("", *)                 = []
3233
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("ab de fg", null)      = ["ab", "de", "fg"]
3234
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("ab   de fg", null)    = ["ab", "", "", "de", "fg"]
3235
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("ab:cd:ef", ":")       = ["ab", "cd", "ef"]
3236
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("ab-!-cd-!-ef", "-!-") = ["ab", "cd", "ef"]
3237
     * </pre>
3238
     *
3239
     * @param str  the String to parse, may be null
3240
     * @param separator  String containing the String to be used as a delimiter,
3241
     *  {@code null} splits on whitespace
3242
     * @return an array of parsed Strings, {@code null} if null String was input
3243
     * @since 2.4
3244
     */
3245
    public static String[] splitByWholeSeparatorPreserveAllTokens(final String str, final String separator) {
3246 1 1. splitByWholeSeparatorPreserveAllTokens : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitByWholeSeparatorWorker(str, separator, -1, true);
3247
    }
3248
3249
    /**
3250
     * <p>Splits the provided text into an array, separator string specified.
3251
     * Returns a maximum of {@code max} substrings.</p>
3252
     *
3253
     * <p>The separator is not included in the returned String array.
3254
     * Adjacent separators are treated as separators for empty tokens.
3255
     * For more control over the split use the StrTokenizer class.</p>
3256
     *
3257
     * <p>A {@code null} input String returns {@code null}.
3258
     * A {@code null} separator splits on whitespace.</p>
3259
     *
3260
     * <pre>
3261
     * StringUtils.splitByWholeSeparatorPreserveAllTokens(null, *, *)               = null
3262
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("", *, *)                 = []
3263
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("ab de fg", null, 0)      = ["ab", "de", "fg"]
3264
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("ab   de fg", null, 0)    = ["ab", "", "", "de", "fg"]
3265
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("ab:cd:ef", ":", 2)       = ["ab", "cd:ef"]
3266
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("ab-!-cd-!-ef", "-!-", 5) = ["ab", "cd", "ef"]
3267
     * StringUtils.splitByWholeSeparatorPreserveAllTokens("ab-!-cd-!-ef", "-!-", 2) = ["ab", "cd-!-ef"]
3268
     * </pre>
3269
     *
3270
     * @param str  the String to parse, may be null
3271
     * @param separator  String containing the String to be used as a delimiter,
3272
     *  {@code null} splits on whitespace
3273
     * @param max  the maximum number of elements to include in the returned
3274
     *  array. A zero or negative value implies no limit.
3275
     * @return an array of parsed Strings, {@code null} if null String was input
3276
     * @since 2.4
3277
     */
3278
    public static String[] splitByWholeSeparatorPreserveAllTokens(final String str, final String separator, final int max) {
3279 1 1. splitByWholeSeparatorPreserveAllTokens : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitByWholeSeparatorWorker(str, separator, max, true);
3280
    }
3281
3282
    /**
3283
     * Performs the logic for the {@code splitByWholeSeparatorPreserveAllTokens} methods.
3284
     *
3285
     * @param str  the String to parse, may be {@code null}
3286
     * @param separator  String containing the String to be used as a delimiter,
3287
     *  {@code null} splits on whitespace
3288
     * @param max  the maximum number of elements to include in the returned
3289
     *  array. A zero or negative value implies no limit.
3290
     * @param preserveAllTokens if {@code true}, adjacent separators are
3291
     * treated as empty token separators; if {@code false}, adjacent
3292
     * separators are treated as one separator.
3293
     * @return an array of parsed Strings, {@code null} if null String input
3294
     * @since 2.4
3295
     */
3296
    private static String[] splitByWholeSeparatorWorker(
3297
            final String str, final String separator, final int max, final boolean preserveAllTokens) {
3298 1 1. splitByWholeSeparatorWorker : negated conditional → KILLED
        if (str == null) {
3299 1 1. splitByWholeSeparatorWorker : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3300
        }
3301
3302
        final int len = str.length();
3303
3304 1 1. splitByWholeSeparatorWorker : negated conditional → KILLED
        if (len == 0) {
3305 1 1. splitByWholeSeparatorWorker : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return ArrayUtils.EMPTY_STRING_ARRAY;
3306
        }
3307
3308 2 1. splitByWholeSeparatorWorker : negated conditional → KILLED
2. splitByWholeSeparatorWorker : negated conditional → KILLED
        if (separator == null || EMPTY.equals(separator)) {
3309
            // Split on whitespace.
3310 1 1. splitByWholeSeparatorWorker : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return splitWorker(str, null, max, preserveAllTokens);
3311
        }
3312
3313
        final int separatorLength = separator.length();
3314
3315
        final ArrayList<String> substrings = new ArrayList<>();
3316
        int numberOfSubstrings = 0;
3317
        int beg = 0;
3318
        int end = 0;
3319 2 1. splitByWholeSeparatorWorker : changed conditional boundary → TIMED_OUT
2. splitByWholeSeparatorWorker : negated conditional → KILLED
        while (end < len) {
3320
            end = str.indexOf(separator, beg);
3321
3322 2 1. splitByWholeSeparatorWorker : changed conditional boundary → TIMED_OUT
2. splitByWholeSeparatorWorker : negated conditional → KILLED
            if (end > -1) {
3323 2 1. splitByWholeSeparatorWorker : changed conditional boundary → KILLED
2. splitByWholeSeparatorWorker : negated conditional → KILLED
                if (end > beg) {
3324 1 1. splitByWholeSeparatorWorker : Changed increment from 1 to -1 → KILLED
                    numberOfSubstrings += 1;
3325
3326 1 1. splitByWholeSeparatorWorker : negated conditional → KILLED
                    if (numberOfSubstrings == max) {
3327
                        end = len;
3328
                        substrings.add(str.substring(beg));
3329
                    } else {
3330
                        // The following is OK, because String.substring( beg, end ) excludes
3331
                        // the character at the position 'end'.
3332
                        substrings.add(str.substring(beg, end));
3333
3334
                        // Set the starting point for the next search.
3335
                        // The following is equivalent to beg = end + (separatorLength - 1) + 1,
3336
                        // which is the right calculation:
3337 1 1. splitByWholeSeparatorWorker : Replaced integer addition with subtraction → KILLED
                        beg = end + separatorLength;
3338
                    }
3339
                } else {
3340
                    // We found a consecutive occurrence of the separator, so skip it.
3341 1 1. splitByWholeSeparatorWorker : negated conditional → KILLED
                    if (preserveAllTokens) {
3342 1 1. splitByWholeSeparatorWorker : Changed increment from 1 to -1 → KILLED
                        numberOfSubstrings += 1;
3343 1 1. splitByWholeSeparatorWorker : negated conditional → KILLED
                        if (numberOfSubstrings == max) {
3344
                            end = len;
3345
                            substrings.add(str.substring(beg));
3346
                        } else {
3347
                            substrings.add(EMPTY);
3348
                        }
3349
                    }
3350 1 1. splitByWholeSeparatorWorker : Replaced integer addition with subtraction → TIMED_OUT
                    beg = end + separatorLength;
3351
                }
3352
            } else {
3353
                // String.substring( beg ) goes from 'beg' to the end of the String.
3354
                substrings.add(str.substring(beg));
3355
                end = len;
3356
            }
3357
        }
3358
3359 1 1. splitByWholeSeparatorWorker : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return substrings.toArray(new String[substrings.size()]);
3360
    }
3361
3362
    // -----------------------------------------------------------------------
3363
    /**
3364
     * <p>Splits the provided text into an array, using whitespace as the
3365
     * separator, preserving all tokens, including empty tokens created by
3366
     * adjacent separators. This is an alternative to using StringTokenizer.
3367
     * Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
3368
     *
3369
     * <p>The separator is not included in the returned String array.
3370
     * Adjacent separators are treated as separators for empty tokens.
3371
     * For more control over the split use the StrTokenizer class.</p>
3372
     *
3373
     * <p>A {@code null} input String returns {@code null}.</p>
3374
     *
3375
     * <pre>
3376
     * StringUtils.splitPreserveAllTokens(null)       = null
3377
     * StringUtils.splitPreserveAllTokens("")         = []
3378
     * StringUtils.splitPreserveAllTokens("abc def")  = ["abc", "def"]
3379
     * StringUtils.splitPreserveAllTokens("abc  def") = ["abc", "", "def"]
3380
     * StringUtils.splitPreserveAllTokens(" abc ")    = ["", "abc", ""]
3381
     * </pre>
3382
     *
3383
     * @param str  the String to parse, may be {@code null}
3384
     * @return an array of parsed Strings, {@code null} if null String input
3385
     * @since 2.1
3386
     */
3387
    public static String[] splitPreserveAllTokens(final String str) {
3388 1 1. splitPreserveAllTokens : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitWorker(str, null, -1, true);
3389
    }
3390
3391
    /**
3392
     * <p>Splits the provided text into an array, separator specified,
3393
     * preserving all tokens, including empty tokens created by adjacent
3394
     * separators. This is an alternative to using StringTokenizer.</p>
3395
     *
3396
     * <p>The separator is not included in the returned String array.
3397
     * Adjacent separators are treated as separators for empty tokens.
3398
     * For more control over the split use the StrTokenizer class.</p>
3399
     *
3400
     * <p>A {@code null} input String returns {@code null}.</p>
3401
     *
3402
     * <pre>
3403
     * StringUtils.splitPreserveAllTokens(null, *)         = null
3404
     * StringUtils.splitPreserveAllTokens("", *)           = []
3405
     * StringUtils.splitPreserveAllTokens("a.b.c", '.')    = ["a", "b", "c"]
3406
     * StringUtils.splitPreserveAllTokens("a..b.c", '.')   = ["a", "", "b", "c"]
3407
     * StringUtils.splitPreserveAllTokens("a:b:c", '.')    = ["a:b:c"]
3408
     * StringUtils.splitPreserveAllTokens("a\tb\nc", null) = ["a", "b", "c"]
3409
     * StringUtils.splitPreserveAllTokens("a b c", ' ')    = ["a", "b", "c"]
3410
     * StringUtils.splitPreserveAllTokens("a b c ", ' ')   = ["a", "b", "c", ""]
3411
     * StringUtils.splitPreserveAllTokens("a b c  ", ' ')   = ["a", "b", "c", "", ""]
3412
     * StringUtils.splitPreserveAllTokens(" a b c", ' ')   = ["", a", "b", "c"]
3413
     * StringUtils.splitPreserveAllTokens("  a b c", ' ')  = ["", "", a", "b", "c"]
3414
     * StringUtils.splitPreserveAllTokens(" a b c ", ' ')  = ["", a", "b", "c", ""]
3415
     * </pre>
3416
     *
3417
     * @param str  the String to parse, may be {@code null}
3418
     * @param separatorChar  the character used as the delimiter,
3419
     *  {@code null} splits on whitespace
3420
     * @return an array of parsed Strings, {@code null} if null String input
3421
     * @since 2.1
3422
     */
3423
    public static String[] splitPreserveAllTokens(final String str, final char separatorChar) {
3424 1 1. splitPreserveAllTokens : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitWorker(str, separatorChar, true);
3425
    }
3426
3427
    /**
3428
     * Performs the logic for the {@code split} and
3429
     * {@code splitPreserveAllTokens} methods that do not return a
3430
     * maximum array length.
3431
     *
3432
     * @param str  the String to parse, may be {@code null}
3433
     * @param separatorChar the separate character
3434
     * @param preserveAllTokens if {@code true}, adjacent separators are
3435
     * treated as empty token separators; if {@code false}, adjacent
3436
     * separators are treated as one separator.
3437
     * @return an array of parsed Strings, {@code null} if null String input
3438
     */
3439
    private static String[] splitWorker(final String str, final char separatorChar, final boolean preserveAllTokens) {
3440
        // Performance tuned for 2.0 (JDK1.4)
3441
3442 1 1. splitWorker : negated conditional → KILLED
        if (str == null) {
3443 1 1. splitWorker : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3444
        }
3445
        final int len = str.length();
3446 1 1. splitWorker : negated conditional → KILLED
        if (len == 0) {
3447 1 1. splitWorker : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return ArrayUtils.EMPTY_STRING_ARRAY;
3448
        }
3449
        final List<String> list = new ArrayList<>();
3450
        int i = 0, start = 0;
3451
        boolean match = false;
3452
        boolean lastMatch = false;
3453 2 1. splitWorker : changed conditional boundary → KILLED
2. splitWorker : negated conditional → KILLED
        while (i < len) {
3454 1 1. splitWorker : negated conditional → KILLED
            if (str.charAt(i) == separatorChar) {
3455 2 1. splitWorker : negated conditional → KILLED
2. splitWorker : negated conditional → KILLED
                if (match || preserveAllTokens) {
3456
                    list.add(str.substring(start, i));
3457
                    match = false;
3458
                    lastMatch = true;
3459
                }
3460 1 1. splitWorker : Changed increment from 1 to -1 → TIMED_OUT
                start = ++i;
3461
                continue;
3462
            }
3463
            lastMatch = false;
3464
            match = true;
3465 1 1. splitWorker : Changed increment from 1 to -1 → KILLED
            i++;
3466
        }
3467 3 1. splitWorker : negated conditional → KILLED
2. splitWorker : negated conditional → KILLED
3. splitWorker : negated conditional → KILLED
        if (match || preserveAllTokens && lastMatch) {
3468
            list.add(str.substring(start, i));
3469
        }
3470 1 1. splitWorker : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return list.toArray(new String[list.size()]);
3471
    }
3472
3473
    /**
3474
     * <p>Splits the provided text into an array, separators specified,
3475
     * preserving all tokens, including empty tokens created by adjacent
3476
     * separators. This is an alternative to using StringTokenizer.</p>
3477
     *
3478
     * <p>The separator is not included in the returned String array.
3479
     * Adjacent separators are treated as separators for empty tokens.
3480
     * For more control over the split use the StrTokenizer class.</p>
3481
     *
3482
     * <p>A {@code null} input String returns {@code null}.
3483
     * A {@code null} separatorChars splits on whitespace.</p>
3484
     *
3485
     * <pre>
3486
     * StringUtils.splitPreserveAllTokens(null, *)           = null
3487
     * StringUtils.splitPreserveAllTokens("", *)             = []
3488
     * StringUtils.splitPreserveAllTokens("abc def", null)   = ["abc", "def"]
3489
     * StringUtils.splitPreserveAllTokens("abc def", " ")    = ["abc", "def"]
3490
     * StringUtils.splitPreserveAllTokens("abc  def", " ")   = ["abc", "", def"]
3491
     * StringUtils.splitPreserveAllTokens("ab:cd:ef", ":")   = ["ab", "cd", "ef"]
3492
     * StringUtils.splitPreserveAllTokens("ab:cd:ef:", ":")  = ["ab", "cd", "ef", ""]
3493
     * StringUtils.splitPreserveAllTokens("ab:cd:ef::", ":") = ["ab", "cd", "ef", "", ""]
3494
     * StringUtils.splitPreserveAllTokens("ab::cd:ef", ":")  = ["ab", "", cd", "ef"]
3495
     * StringUtils.splitPreserveAllTokens(":cd:ef", ":")     = ["", cd", "ef"]
3496
     * StringUtils.splitPreserveAllTokens("::cd:ef", ":")    = ["", "", cd", "ef"]
3497
     * StringUtils.splitPreserveAllTokens(":cd:ef:", ":")    = ["", cd", "ef", ""]
3498
     * </pre>
3499
     *
3500
     * @param str  the String to parse, may be {@code null}
3501
     * @param separatorChars  the characters used as the delimiters,
3502
     *  {@code null} splits on whitespace
3503
     * @return an array of parsed Strings, {@code null} if null String input
3504
     * @since 2.1
3505
     */
3506
    public static String[] splitPreserveAllTokens(final String str, final String separatorChars) {
3507 1 1. splitPreserveAllTokens : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitWorker(str, separatorChars, -1, true);
3508
    }
3509
3510
    /**
3511
     * <p>Splits the provided text into an array with a maximum length,
3512
     * separators specified, preserving all tokens, including empty tokens
3513
     * created by adjacent separators.</p>
3514
     *
3515
     * <p>The separator is not included in the returned String array.
3516
     * Adjacent separators are treated as separators for empty tokens.
3517
     * Adjacent separators are treated as one separator.</p>
3518
     *
3519
     * <p>A {@code null} input String returns {@code null}.
3520
     * A {@code null} separatorChars splits on whitespace.</p>
3521
     *
3522
     * <p>If more than {@code max} delimited substrings are found, the last
3523
     * returned string includes all characters after the first {@code max - 1}
3524
     * returned strings (including separator characters).</p>
3525
     *
3526
     * <pre>
3527
     * StringUtils.splitPreserveAllTokens(null, *, *)            = null
3528
     * StringUtils.splitPreserveAllTokens("", *, *)              = []
3529
     * StringUtils.splitPreserveAllTokens("ab de fg", null, 0)   = ["ab", "cd", "ef"]
3530
     * StringUtils.splitPreserveAllTokens("ab   de fg", null, 0) = ["ab", "cd", "ef"]
3531
     * StringUtils.splitPreserveAllTokens("ab:cd:ef", ":", 0)    = ["ab", "cd", "ef"]
3532
     * StringUtils.splitPreserveAllTokens("ab:cd:ef", ":", 2)    = ["ab", "cd:ef"]
3533
     * StringUtils.splitPreserveAllTokens("ab   de fg", null, 2) = ["ab", "  de fg"]
3534
     * StringUtils.splitPreserveAllTokens("ab   de fg", null, 3) = ["ab", "", " de fg"]
3535
     * StringUtils.splitPreserveAllTokens("ab   de fg", null, 4) = ["ab", "", "", "de fg"]
3536
     * </pre>
3537
     *
3538
     * @param str  the String to parse, may be {@code null}
3539
     * @param separatorChars  the characters used as the delimiters,
3540
     *  {@code null} splits on whitespace
3541
     * @param max  the maximum number of elements to include in the
3542
     *  array. A zero or negative value implies no limit
3543
     * @return an array of parsed Strings, {@code null} if null String input
3544
     * @since 2.1
3545
     */
3546
    public static String[] splitPreserveAllTokens(final String str, final String separatorChars, final int max) {
3547 1 1. splitPreserveAllTokens : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitWorker(str, separatorChars, max, true);
3548
    }
3549
3550
    /**
3551
     * Performs the logic for the {@code split} and
3552
     * {@code splitPreserveAllTokens} methods that return a maximum array
3553
     * length.
3554
     *
3555
     * @param str  the String to parse, may be {@code null}
3556
     * @param separatorChars the separate character
3557
     * @param max  the maximum number of elements to include in the
3558
     *  array. A zero or negative value implies no limit.
3559
     * @param preserveAllTokens if {@code true}, adjacent separators are
3560
     * treated as empty token separators; if {@code false}, adjacent
3561
     * separators are treated as one separator.
3562
     * @return an array of parsed Strings, {@code null} if null String input
3563
     */
3564
    private static String[] splitWorker(final String str, final String separatorChars, final int max, final boolean preserveAllTokens) {
3565
        // Performance tuned for 2.0 (JDK1.4)
3566
        // Direct code is quicker than StringTokenizer.
3567
        // Also, StringTokenizer uses isSpace() not isWhitespace()
3568
3569 1 1. splitWorker : negated conditional → KILLED
        if (str == null) {
3570 1 1. splitWorker : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3571
        }
3572
        final int len = str.length();
3573 1 1. splitWorker : negated conditional → KILLED
        if (len == 0) {
3574 1 1. splitWorker : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return ArrayUtils.EMPTY_STRING_ARRAY;
3575
        }
3576
        final List<String> list = new ArrayList<>();
3577
        int sizePlus1 = 1;
3578
        int i = 0, start = 0;
3579
        boolean match = false;
3580
        boolean lastMatch = false;
3581 1 1. splitWorker : negated conditional → KILLED
        if (separatorChars == null) {
3582
            // Null separator means use whitespace
3583 2 1. splitWorker : changed conditional boundary → KILLED
2. splitWorker : negated conditional → KILLED
            while (i < len) {
3584 1 1. splitWorker : negated conditional → KILLED
                if (Character.isWhitespace(str.charAt(i))) {
3585 2 1. splitWorker : negated conditional → KILLED
2. splitWorker : negated conditional → KILLED
                    if (match || preserveAllTokens) {
3586
                        lastMatch = true;
3587 2 1. splitWorker : Changed increment from 1 to -1 → KILLED
2. splitWorker : negated conditional → KILLED
                        if (sizePlus1++ == max) {
3588
                            i = len;
3589
                            lastMatch = false;
3590
                        }
3591
                        list.add(str.substring(start, i));
3592
                        match = false;
3593
                    }
3594 1 1. splitWorker : Changed increment from 1 to -1 → KILLED
                    start = ++i;
3595
                    continue;
3596
                }
3597
                lastMatch = false;
3598
                match = true;
3599 1 1. splitWorker : Changed increment from 1 to -1 → KILLED
                i++;
3600
            }
3601 1 1. splitWorker : negated conditional → SURVIVED
        } else if (separatorChars.length() == 1) {
3602
            // Optimise 1 character case
3603
            final char sep = separatorChars.charAt(0);
3604 2 1. splitWorker : changed conditional boundary → KILLED
2. splitWorker : negated conditional → KILLED
            while (i < len) {
3605 1 1. splitWorker : negated conditional → KILLED
                if (str.charAt(i) == sep) {
3606 2 1. splitWorker : negated conditional → KILLED
2. splitWorker : negated conditional → KILLED
                    if (match || preserveAllTokens) {
3607
                        lastMatch = true;
3608 2 1. splitWorker : Changed increment from 1 to -1 → KILLED
2. splitWorker : negated conditional → KILLED
                        if (sizePlus1++ == max) {
3609
                            i = len;
3610
                            lastMatch = false;
3611
                        }
3612
                        list.add(str.substring(start, i));
3613
                        match = false;
3614
                    }
3615 1 1. splitWorker : Changed increment from 1 to -1 → TIMED_OUT
                    start = ++i;
3616
                    continue;
3617
                }
3618
                lastMatch = false;
3619
                match = true;
3620 1 1. splitWorker : Changed increment from 1 to -1 → KILLED
                i++;
3621
            }
3622
        } else {
3623
            // standard case
3624 2 1. splitWorker : changed conditional boundary → KILLED
2. splitWorker : negated conditional → KILLED
            while (i < len) {
3625 2 1. splitWorker : changed conditional boundary → KILLED
2. splitWorker : negated conditional → KILLED
                if (separatorChars.indexOf(str.charAt(i)) >= 0) {
3626 2 1. splitWorker : negated conditional → KILLED
2. splitWorker : negated conditional → KILLED
                    if (match || preserveAllTokens) {
3627
                        lastMatch = true;
3628 2 1. splitWorker : Changed increment from 1 to -1 → KILLED
2. splitWorker : negated conditional → KILLED
                        if (sizePlus1++ == max) {
3629
                            i = len;
3630
                            lastMatch = false;
3631
                        }
3632
                        list.add(str.substring(start, i));
3633
                        match = false;
3634
                    }
3635 1 1. splitWorker : Changed increment from 1 to -1 → TIMED_OUT
                    start = ++i;
3636
                    continue;
3637
                }
3638
                lastMatch = false;
3639
                match = true;
3640 1 1. splitWorker : Changed increment from 1 to -1 → KILLED
                i++;
3641
            }
3642
        }
3643 3 1. splitWorker : negated conditional → KILLED
2. splitWorker : negated conditional → KILLED
3. splitWorker : negated conditional → KILLED
        if (match || preserveAllTokens && lastMatch) {
3644
            list.add(str.substring(start, i));
3645
        }
3646 1 1. splitWorker : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return list.toArray(new String[list.size()]);
3647
    }
3648
3649
    /**
3650
     * <p>Splits a String by Character type as returned by
3651
     * {@code java.lang.Character.getType(char)}. Groups of contiguous
3652
     * characters of the same type are returned as complete tokens.
3653
     * <pre>
3654
     * StringUtils.splitByCharacterType(null)         = null
3655
     * StringUtils.splitByCharacterType("")           = []
3656
     * StringUtils.splitByCharacterType("ab de fg")   = ["ab", " ", "de", " ", "fg"]
3657
     * StringUtils.splitByCharacterType("ab   de fg") = ["ab", "   ", "de", " ", "fg"]
3658
     * StringUtils.splitByCharacterType("ab:cd:ef")   = ["ab", ":", "cd", ":", "ef"]
3659
     * StringUtils.splitByCharacterType("number5")    = ["number", "5"]
3660
     * StringUtils.splitByCharacterType("fooBar")     = ["foo", "B", "ar"]
3661
     * StringUtils.splitByCharacterType("foo200Bar")  = ["foo", "200", "B", "ar"]
3662
     * StringUtils.splitByCharacterType("ASFRules")   = ["ASFR", "ules"]
3663
     * </pre>
3664
     * @param str the String to split, may be {@code null}
3665
     * @return an array of parsed Strings, {@code null} if null String input
3666
     * @since 2.4
3667
     */
3668
    public static String[] splitByCharacterType(final String str) {
3669 1 1. splitByCharacterType : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByCharacterType to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitByCharacterType(str, false);
3670
    }
3671
3672
    /**
3673
     * <p>Splits a String by Character type as returned by
3674
     * {@code java.lang.Character.getType(char)}. Groups of contiguous
3675
     * characters of the same type are returned as complete tokens, with the
3676
     * following exception: the character of type
3677
     * {@code Character.UPPERCASE_LETTER}, if any, immediately
3678
     * preceding a token of type {@code Character.LOWERCASE_LETTER}
3679
     * will belong to the following token rather than to the preceding, if any,
3680
     * {@code Character.UPPERCASE_LETTER} token.
3681
     * <pre>
3682
     * StringUtils.splitByCharacterTypeCamelCase(null)         = null
3683
     * StringUtils.splitByCharacterTypeCamelCase("")           = []
3684
     * StringUtils.splitByCharacterTypeCamelCase("ab de fg")   = ["ab", " ", "de", " ", "fg"]
3685
     * StringUtils.splitByCharacterTypeCamelCase("ab   de fg") = ["ab", "   ", "de", " ", "fg"]
3686
     * StringUtils.splitByCharacterTypeCamelCase("ab:cd:ef")   = ["ab", ":", "cd", ":", "ef"]
3687
     * StringUtils.splitByCharacterTypeCamelCase("number5")    = ["number", "5"]
3688
     * StringUtils.splitByCharacterTypeCamelCase("fooBar")     = ["foo", "Bar"]
3689
     * StringUtils.splitByCharacterTypeCamelCase("foo200Bar")  = ["foo", "200", "Bar"]
3690
     * StringUtils.splitByCharacterTypeCamelCase("ASFRules")   = ["ASF", "Rules"]
3691
     * </pre>
3692
     * @param str the String to split, may be {@code null}
3693
     * @return an array of parsed Strings, {@code null} if null String input
3694
     * @since 2.4
3695
     */
3696
    public static String[] splitByCharacterTypeCamelCase(final String str) {
3697 1 1. splitByCharacterTypeCamelCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByCharacterTypeCamelCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return splitByCharacterType(str, true);
3698
    }
3699
3700
    /**
3701
     * <p>Splits a String by Character type as returned by
3702
     * {@code java.lang.Character.getType(char)}. Groups of contiguous
3703
     * characters of the same type are returned as complete tokens, with the
3704
     * following exception: if {@code camelCase} is {@code true},
3705
     * the character of type {@code Character.UPPERCASE_LETTER}, if any,
3706
     * immediately preceding a token of type {@code Character.LOWERCASE_LETTER}
3707
     * will belong to the following token rather than to the preceding, if any,
3708
     * {@code Character.UPPERCASE_LETTER} token.
3709
     * @param str the String to split, may be {@code null}
3710
     * @param camelCase whether to use so-called "camel-case" for letter types
3711
     * @return an array of parsed Strings, {@code null} if null String input
3712
     * @since 2.4
3713
     */
3714
    private static String[] splitByCharacterType(final String str, final boolean camelCase) {
3715 1 1. splitByCharacterType : negated conditional → KILLED
        if (str == null) {
3716 1 1. splitByCharacterType : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByCharacterType to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3717
        }
3718 1 1. splitByCharacterType : negated conditional → KILLED
        if (str.isEmpty()) {
3719 1 1. splitByCharacterType : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByCharacterType to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return ArrayUtils.EMPTY_STRING_ARRAY;
3720
        }
3721
        final char[] c = str.toCharArray();
3722
        final List<String> list = new ArrayList<>();
3723
        int tokenStart = 0;
3724
        int currentType = Character.getType(c[tokenStart]);
3725 4 1. splitByCharacterType : changed conditional boundary → KILLED
2. splitByCharacterType : Changed increment from 1 to -1 → KILLED
3. splitByCharacterType : Replaced integer addition with subtraction → KILLED
4. splitByCharacterType : negated conditional → KILLED
        for (int pos = tokenStart + 1; pos < c.length; pos++) {
3726
            final int type = Character.getType(c[pos]);
3727 1 1. splitByCharacterType : negated conditional → KILLED
            if (type == currentType) {
3728
                continue;
3729
            }
3730 3 1. splitByCharacterType : negated conditional → KILLED
2. splitByCharacterType : negated conditional → KILLED
3. splitByCharacterType : negated conditional → KILLED
            if (camelCase && type == Character.LOWERCASE_LETTER && currentType == Character.UPPERCASE_LETTER) {
3731 1 1. splitByCharacterType : Replaced integer subtraction with addition → KILLED
                final int newTokenStart = pos - 1;
3732 1 1. splitByCharacterType : negated conditional → KILLED
                if (newTokenStart != tokenStart) {
3733 1 1. splitByCharacterType : Replaced integer subtraction with addition → SURVIVED
                    list.add(new String(c, tokenStart, newTokenStart - tokenStart));
3734
                    tokenStart = newTokenStart;
3735
                }
3736
            } else {
3737 1 1. splitByCharacterType : Replaced integer subtraction with addition → KILLED
                list.add(new String(c, tokenStart, pos - tokenStart));
3738
                tokenStart = pos;
3739
            }
3740
            currentType = type;
3741
        }
3742 1 1. splitByCharacterType : Replaced integer subtraction with addition → KILLED
        list.add(new String(c, tokenStart, c.length - tokenStart));
3743 1 1. splitByCharacterType : mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByCharacterType to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return list.toArray(new String[list.size()]);
3744
    }
3745
3746
    // Joining
3747
    //-----------------------------------------------------------------------
3748
    /**
3749
     * <p>Joins the elements of the provided array into a single String
3750
     * containing the provided list of elements.</p>
3751
     *
3752
     * <p>No separator is added to the joined String.
3753
     * Null objects or empty strings within the array are represented by
3754
     * empty strings.</p>
3755
     *
3756
     * <pre>
3757
     * StringUtils.join(null)            = null
3758
     * StringUtils.join([])              = ""
3759
     * StringUtils.join([null])          = ""
3760
     * StringUtils.join(["a", "b", "c"]) = "abc"
3761
     * StringUtils.join([null, "", "a"]) = "a"
3762
     * </pre>
3763
     *
3764
     * @param <T> the specific type of values to join together
3765
     * @param elements  the values to join together, may be null
3766
     * @return the joined String, {@code null} if null array input
3767
     * @since 2.0
3768
     * @since 3.0 Changed signature to use varargs
3769
     */
3770
    @SafeVarargs
3771
    public static <T> String join(final T... elements) {
3772 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(elements, null);
3773
    }
3774
3775
    /**
3776
     * <p>Joins the elements of the provided array into a single String
3777
     * containing the provided list of elements.</p>
3778
     *
3779
     * <p>No delimiter is added before or after the list.
3780
     * Null objects or empty strings within the array are represented by
3781
     * empty strings.</p>
3782
     *
3783
     * <pre>
3784
     * StringUtils.join(null, *)               = null
3785
     * StringUtils.join([], *)                 = ""
3786
     * StringUtils.join([null], *)             = ""
3787
     * StringUtils.join(["a", "b", "c"], ';')  = "a;b;c"
3788
     * StringUtils.join(["a", "b", "c"], null) = "abc"
3789
     * StringUtils.join([null, "", "a"], ';')  = ";;a"
3790
     * </pre>
3791
     *
3792
     * @param array  the array of values to join together, may be null
3793
     * @param separator  the separator character to use
3794
     * @return the joined String, {@code null} if null array input
3795
     * @since 2.0
3796
     */
3797
    public static String join(final Object[] array, final char separator) {
3798 1 1. join : negated conditional → KILLED
        if (array == null) {
3799 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3800
        }
3801 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(array, separator, 0, array.length);
3802
    }
3803
3804
    /**
3805
     * <p>
3806
     * Joins the elements of the provided array into a single String containing the provided list of elements.
3807
     * </p>
3808
     *
3809
     * <p>
3810
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
3811
     * by empty strings.
3812
     * </p>
3813
     *
3814
     * <pre>
3815
     * StringUtils.join(null, *)               = null
3816
     * StringUtils.join([], *)                 = ""
3817
     * StringUtils.join([null], *)             = ""
3818
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
3819
     * StringUtils.join([1, 2, 3], null) = "123"
3820
     * </pre>
3821
     *
3822
     * @param array
3823
     *            the array of values to join together, may be null
3824
     * @param separator
3825
     *            the separator character to use
3826
     * @return the joined String, {@code null} if null array input
3827
     * @since 3.2
3828
     */
3829
    public static String join(final long[] array, final char separator) {
3830 1 1. join : negated conditional → KILLED
        if (array == null) {
3831 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3832
        }
3833 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(array, separator, 0, array.length);
3834
    }
3835
3836
    /**
3837
     * <p>
3838
     * Joins the elements of the provided array into a single String containing the provided list of elements.
3839
     * </p>
3840
     *
3841
     * <p>
3842
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
3843
     * by empty strings.
3844
     * </p>
3845
     *
3846
     * <pre>
3847
     * StringUtils.join(null, *)               = null
3848
     * StringUtils.join([], *)                 = ""
3849
     * StringUtils.join([null], *)             = ""
3850
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
3851
     * StringUtils.join([1, 2, 3], null) = "123"
3852
     * </pre>
3853
     *
3854
     * @param array
3855
     *            the array of values to join together, may be null
3856
     * @param separator
3857
     *            the separator character to use
3858
     * @return the joined String, {@code null} if null array input
3859
     * @since 3.2
3860
     */
3861
    public static String join(final int[] array, final char separator) {
3862 1 1. join : negated conditional → KILLED
        if (array == null) {
3863 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3864
        }
3865 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(array, separator, 0, array.length);
3866
    }
3867
3868
    /**
3869
     * <p>
3870
     * Joins the elements of the provided array into a single String containing the provided list of elements.
3871
     * </p>
3872
     *
3873
     * <p>
3874
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
3875
     * by empty strings.
3876
     * </p>
3877
     *
3878
     * <pre>
3879
     * StringUtils.join(null, *)               = null
3880
     * StringUtils.join([], *)                 = ""
3881
     * StringUtils.join([null], *)             = ""
3882
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
3883
     * StringUtils.join([1, 2, 3], null) = "123"
3884
     * </pre>
3885
     *
3886
     * @param array
3887
     *            the array of values to join together, may be null
3888
     * @param separator
3889
     *            the separator character to use
3890
     * @return the joined String, {@code null} if null array input
3891
     * @since 3.2
3892
     */
3893
    public static String join(final short[] array, final char separator) {
3894 1 1. join : negated conditional → KILLED
        if (array == null) {
3895 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3896
        }
3897 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(array, separator, 0, array.length);
3898
    }
3899
3900
    /**
3901
     * <p>
3902
     * Joins the elements of the provided array into a single String containing the provided list of elements.
3903
     * </p>
3904
     *
3905
     * <p>
3906
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
3907
     * by empty strings.
3908
     * </p>
3909
     *
3910
     * <pre>
3911
     * StringUtils.join(null, *)               = null
3912
     * StringUtils.join([], *)                 = ""
3913
     * StringUtils.join([null], *)             = ""
3914
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
3915
     * StringUtils.join([1, 2, 3], null) = "123"
3916
     * </pre>
3917
     *
3918
     * @param array
3919
     *            the array of values to join together, may be null
3920
     * @param separator
3921
     *            the separator character to use
3922
     * @return the joined String, {@code null} if null array input
3923
     * @since 3.2
3924
     */
3925
    public static String join(final byte[] array, final char separator) {
3926 1 1. join : negated conditional → KILLED
        if (array == null) {
3927 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3928
        }
3929 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(array, separator, 0, array.length);
3930
    }
3931
3932
    /**
3933
     * <p>
3934
     * Joins the elements of the provided array into a single String containing the provided list of elements.
3935
     * </p>
3936
     *
3937
     * <p>
3938
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
3939
     * by empty strings.
3940
     * </p>
3941
     *
3942
     * <pre>
3943
     * StringUtils.join(null, *)               = null
3944
     * StringUtils.join([], *)                 = ""
3945
     * StringUtils.join([null], *)             = ""
3946
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
3947
     * StringUtils.join([1, 2, 3], null) = "123"
3948
     * </pre>
3949
     *
3950
     * @param array
3951
     *            the array of values to join together, may be null
3952
     * @param separator
3953
     *            the separator character to use
3954
     * @return the joined String, {@code null} if null array input
3955
     * @since 3.2
3956
     */
3957
    public static String join(final char[] array, final char separator) {
3958 1 1. join : negated conditional → KILLED
        if (array == null) {
3959 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3960
        }
3961 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(array, separator, 0, array.length);
3962
    }
3963
3964
    /**
3965
     * <p>
3966
     * Joins the elements of the provided array into a single String containing the provided list of elements.
3967
     * </p>
3968
     *
3969
     * <p>
3970
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
3971
     * by empty strings.
3972
     * </p>
3973
     *
3974
     * <pre>
3975
     * StringUtils.join(null, *)               = null
3976
     * StringUtils.join([], *)                 = ""
3977
     * StringUtils.join([null], *)             = ""
3978
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
3979
     * StringUtils.join([1, 2, 3], null) = "123"
3980
     * </pre>
3981
     *
3982
     * @param array
3983
     *            the array of values to join together, may be null
3984
     * @param separator
3985
     *            the separator character to use
3986
     * @return the joined String, {@code null} if null array input
3987
     * @since 3.2
3988
     */
3989
    public static String join(final float[] array, final char separator) {
3990 1 1. join : negated conditional → KILLED
        if (array == null) {
3991 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
3992
        }
3993 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(array, separator, 0, array.length);
3994
    }
3995
3996
    /**
3997
     * <p>
3998
     * Joins the elements of the provided array into a single String containing the provided list of elements.
3999
     * </p>
4000
     *
4001
     * <p>
4002
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
4003
     * by empty strings.
4004
     * </p>
4005
     *
4006
     * <pre>
4007
     * StringUtils.join(null, *)               = null
4008
     * StringUtils.join([], *)                 = ""
4009
     * StringUtils.join([null], *)             = ""
4010
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
4011
     * StringUtils.join([1, 2, 3], null) = "123"
4012
     * </pre>
4013
     *
4014
     * @param array
4015
     *            the array of values to join together, may be null
4016
     * @param separator
4017
     *            the separator character to use
4018
     * @return the joined String, {@code null} if null array input
4019
     * @since 3.2
4020
     */
4021
    public static String join(final double[] array, final char separator) {
4022 1 1. join : negated conditional → KILLED
        if (array == null) {
4023 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4024
        }
4025 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(array, separator, 0, array.length);
4026
    }
4027
4028
4029
    /**
4030
     * <p>Joins the elements of the provided array into a single String
4031
     * containing the provided list of elements.</p>
4032
     *
4033
     * <p>No delimiter is added before or after the list.
4034
     * Null objects or empty strings within the array are represented by
4035
     * empty strings.</p>
4036
     *
4037
     * <pre>
4038
     * StringUtils.join(null, *)               = null
4039
     * StringUtils.join([], *)                 = ""
4040
     * StringUtils.join([null], *)             = ""
4041
     * StringUtils.join(["a", "b", "c"], ';')  = "a;b;c"
4042
     * StringUtils.join(["a", "b", "c"], null) = "abc"
4043
     * StringUtils.join([null, "", "a"], ';')  = ";;a"
4044
     * </pre>
4045
     *
4046
     * @param array  the array of values to join together, may be null
4047
     * @param separator  the separator character to use
4048
     * @param startIndex the first index to start joining from.  It is
4049
     * an error to pass in an end index past the end of the array
4050
     * @param endIndex the index to stop joining from (exclusive). It is
4051
     * an error to pass in an end index past the end of the array
4052
     * @return the joined String, {@code null} if null array input
4053
     * @since 2.0
4054
     */
4055
    public static String join(final Object[] array, final char separator, final int startIndex, final int endIndex) {
4056 1 1. join : negated conditional → KILLED
        if (array == null) {
4057 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4058
        }
4059 1 1. join : Replaced integer subtraction with addition → SURVIVED
        final int noOfItems = endIndex - startIndex;
4060 2 1. join : changed conditional boundary → SURVIVED
2. join : negated conditional → KILLED
        if (noOfItems <= 0) {
4061 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4062
        }
4063 1 1. join : Replaced integer multiplication with division → SURVIVED
        final StringBuilder buf = new StringBuilder(noOfItems * 16);
4064 3 1. join : changed conditional boundary → KILLED
2. join : Changed increment from 1 to -1 → KILLED
3. join : negated conditional → KILLED
        for (int i = startIndex; i < endIndex; i++) {
4065 2 1. join : changed conditional boundary → KILLED
2. join : negated conditional → KILLED
            if (i > startIndex) {
4066
                buf.append(separator);
4067
            }
4068 1 1. join : negated conditional → KILLED
            if (array[i] != null) {
4069
                buf.append(array[i]);
4070
            }
4071
        }
4072 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4073
    }
4074
4075
    /**
4076
     * <p>
4077
     * Joins the elements of the provided array into a single String containing the provided list of elements.
4078
     * </p>
4079
     *
4080
     * <p>
4081
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
4082
     * by empty strings.
4083
     * </p>
4084
     *
4085
     * <pre>
4086
     * StringUtils.join(null, *)               = null
4087
     * StringUtils.join([], *)                 = ""
4088
     * StringUtils.join([null], *)             = ""
4089
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
4090
     * StringUtils.join([1, 2, 3], null) = "123"
4091
     * </pre>
4092
     *
4093
     * @param array
4094
     *            the array of values to join together, may be null
4095
     * @param separator
4096
     *            the separator character to use
4097
     * @param startIndex
4098
     *            the first index to start joining from. It is an error to pass in an end index past the end of the
4099
     *            array
4100
     * @param endIndex
4101
     *            the index to stop joining from (exclusive). It is an error to pass in an end index past the end of
4102
     *            the array
4103
     * @return the joined String, {@code null} if null array input
4104
     * @since 3.2
4105
     */
4106
    public static String join(final long[] array, final char separator, final int startIndex, final int endIndex) {
4107 1 1. join : negated conditional → KILLED
        if (array == null) {
4108 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4109
        }
4110 1 1. join : Replaced integer subtraction with addition → SURVIVED
        final int noOfItems = endIndex - startIndex;
4111 2 1. join : changed conditional boundary → SURVIVED
2. join : negated conditional → KILLED
        if (noOfItems <= 0) {
4112 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4113
        }
4114 1 1. join : Replaced integer multiplication with division → SURVIVED
        final StringBuilder buf = new StringBuilder(noOfItems * 16);
4115 3 1. join : changed conditional boundary → KILLED
2. join : Changed increment from 1 to -1 → KILLED
3. join : negated conditional → KILLED
        for (int i = startIndex; i < endIndex; i++) {
4116 2 1. join : changed conditional boundary → KILLED
2. join : negated conditional → KILLED
            if (i > startIndex) {
4117
                buf.append(separator);
4118
            }
4119
            buf.append(array[i]);
4120
        }
4121 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4122
    }
4123
4124
    /**
4125
     * <p>
4126
     * Joins the elements of the provided array into a single String containing the provided list of elements.
4127
     * </p>
4128
     *
4129
     * <p>
4130
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
4131
     * by empty strings.
4132
     * </p>
4133
     *
4134
     * <pre>
4135
     * StringUtils.join(null, *)               = null
4136
     * StringUtils.join([], *)                 = ""
4137
     * StringUtils.join([null], *)             = ""
4138
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
4139
     * StringUtils.join([1, 2, 3], null) = "123"
4140
     * </pre>
4141
     *
4142
     * @param array
4143
     *            the array of values to join together, may be null
4144
     * @param separator
4145
     *            the separator character to use
4146
     * @param startIndex
4147
     *            the first index to start joining from. It is an error to pass in an end index past the end of the
4148
     *            array
4149
     * @param endIndex
4150
     *            the index to stop joining from (exclusive). It is an error to pass in an end index past the end of
4151
     *            the array
4152
     * @return the joined String, {@code null} if null array input
4153
     * @since 3.2
4154
     */
4155
    public static String join(final int[] array, final char separator, final int startIndex, final int endIndex) {
4156 1 1. join : negated conditional → KILLED
        if (array == null) {
4157 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4158
        }
4159 1 1. join : Replaced integer subtraction with addition → SURVIVED
        final int noOfItems = endIndex - startIndex;
4160 2 1. join : changed conditional boundary → SURVIVED
2. join : negated conditional → KILLED
        if (noOfItems <= 0) {
4161 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4162
        }
4163 1 1. join : Replaced integer multiplication with division → SURVIVED
        final StringBuilder buf = new StringBuilder(noOfItems * 16);
4164 3 1. join : changed conditional boundary → KILLED
2. join : Changed increment from 1 to -1 → KILLED
3. join : negated conditional → KILLED
        for (int i = startIndex; i < endIndex; i++) {
4165 2 1. join : changed conditional boundary → KILLED
2. join : negated conditional → KILLED
            if (i > startIndex) {
4166
                buf.append(separator);
4167
            }
4168
            buf.append(array[i]);
4169
        }
4170 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4171
    }
4172
4173
    /**
4174
     * <p>
4175
     * Joins the elements of the provided array into a single String containing the provided list of elements.
4176
     * </p>
4177
     *
4178
     * <p>
4179
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
4180
     * by empty strings.
4181
     * </p>
4182
     *
4183
     * <pre>
4184
     * StringUtils.join(null, *)               = null
4185
     * StringUtils.join([], *)                 = ""
4186
     * StringUtils.join([null], *)             = ""
4187
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
4188
     * StringUtils.join([1, 2, 3], null) = "123"
4189
     * </pre>
4190
     *
4191
     * @param array
4192
     *            the array of values to join together, may be null
4193
     * @param separator
4194
     *            the separator character to use
4195
     * @param startIndex
4196
     *            the first index to start joining from. It is an error to pass in an end index past the end of the
4197
     *            array
4198
     * @param endIndex
4199
     *            the index to stop joining from (exclusive). It is an error to pass in an end index past the end of
4200
     *            the array
4201
     * @return the joined String, {@code null} if null array input
4202
     * @since 3.2
4203
     */
4204
    public static String join(final byte[] array, final char separator, final int startIndex, final int endIndex) {
4205 1 1. join : negated conditional → KILLED
        if (array == null) {
4206 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4207
        }
4208 1 1. join : Replaced integer subtraction with addition → SURVIVED
        final int noOfItems = endIndex - startIndex;
4209 2 1. join : changed conditional boundary → SURVIVED
2. join : negated conditional → KILLED
        if (noOfItems <= 0) {
4210 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4211
        }
4212 1 1. join : Replaced integer multiplication with division → SURVIVED
        final StringBuilder buf = new StringBuilder(noOfItems * 16);
4213 3 1. join : changed conditional boundary → KILLED
2. join : Changed increment from 1 to -1 → KILLED
3. join : negated conditional → KILLED
        for (int i = startIndex; i < endIndex; i++) {
4214 2 1. join : changed conditional boundary → KILLED
2. join : negated conditional → KILLED
            if (i > startIndex) {
4215
                buf.append(separator);
4216
            }
4217
            buf.append(array[i]);
4218
        }
4219 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4220
    }
4221
4222
    /**
4223
     * <p>
4224
     * Joins the elements of the provided array into a single String containing the provided list of elements.
4225
     * </p>
4226
     *
4227
     * <p>
4228
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
4229
     * by empty strings.
4230
     * </p>
4231
     *
4232
     * <pre>
4233
     * StringUtils.join(null, *)               = null
4234
     * StringUtils.join([], *)                 = ""
4235
     * StringUtils.join([null], *)             = ""
4236
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
4237
     * StringUtils.join([1, 2, 3], null) = "123"
4238
     * </pre>
4239
     *
4240
     * @param array
4241
     *            the array of values to join together, may be null
4242
     * @param separator
4243
     *            the separator character to use
4244
     * @param startIndex
4245
     *            the first index to start joining from. It is an error to pass in an end index past the end of the
4246
     *            array
4247
     * @param endIndex
4248
     *            the index to stop joining from (exclusive). It is an error to pass in an end index past the end of
4249
     *            the array
4250
     * @return the joined String, {@code null} if null array input
4251
     * @since 3.2
4252
     */
4253
    public static String join(final short[] array, final char separator, final int startIndex, final int endIndex) {
4254 1 1. join : negated conditional → KILLED
        if (array == null) {
4255 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4256
        }
4257 1 1. join : Replaced integer subtraction with addition → SURVIVED
        final int noOfItems = endIndex - startIndex;
4258 2 1. join : changed conditional boundary → SURVIVED
2. join : negated conditional → KILLED
        if (noOfItems <= 0) {
4259 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4260
        }
4261 1 1. join : Replaced integer multiplication with division → SURVIVED
        final StringBuilder buf = new StringBuilder(noOfItems * 16);
4262 3 1. join : changed conditional boundary → KILLED
2. join : Changed increment from 1 to -1 → KILLED
3. join : negated conditional → KILLED
        for (int i = startIndex; i < endIndex; i++) {
4263 2 1. join : changed conditional boundary → KILLED
2. join : negated conditional → KILLED
            if (i > startIndex) {
4264
                buf.append(separator);
4265
            }
4266
            buf.append(array[i]);
4267
        }
4268 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4269
    }
4270
4271
    /**
4272
     * <p>
4273
     * Joins the elements of the provided array into a single String containing the provided list of elements.
4274
     * </p>
4275
     *
4276
     * <p>
4277
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
4278
     * by empty strings.
4279
     * </p>
4280
     *
4281
     * <pre>
4282
     * StringUtils.join(null, *)               = null
4283
     * StringUtils.join([], *)                 = ""
4284
     * StringUtils.join([null], *)             = ""
4285
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
4286
     * StringUtils.join([1, 2, 3], null) = "123"
4287
     * </pre>
4288
     *
4289
     * @param array
4290
     *            the array of values to join together, may be null
4291
     * @param separator
4292
     *            the separator character to use
4293
     * @param startIndex
4294
     *            the first index to start joining from. It is an error to pass in an end index past the end of the
4295
     *            array
4296
     * @param endIndex
4297
     *            the index to stop joining from (exclusive). It is an error to pass in an end index past the end of
4298
     *            the array
4299
     * @return the joined String, {@code null} if null array input
4300
     * @since 3.2
4301
     */
4302
    public static String join(final char[] array, final char separator, final int startIndex, final int endIndex) {
4303 1 1. join : negated conditional → KILLED
        if (array == null) {
4304 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4305
        }
4306 1 1. join : Replaced integer subtraction with addition → SURVIVED
        final int noOfItems = endIndex - startIndex;
4307 2 1. join : changed conditional boundary → SURVIVED
2. join : negated conditional → KILLED
        if (noOfItems <= 0) {
4308 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4309
        }
4310 1 1. join : Replaced integer multiplication with division → SURVIVED
        final StringBuilder buf = new StringBuilder(noOfItems * 16);
4311 3 1. join : changed conditional boundary → KILLED
2. join : Changed increment from 1 to -1 → KILLED
3. join : negated conditional → KILLED
        for (int i = startIndex; i < endIndex; i++) {
4312 2 1. join : changed conditional boundary → KILLED
2. join : negated conditional → KILLED
            if (i > startIndex) {
4313
                buf.append(separator);
4314
            }
4315
            buf.append(array[i]);
4316
        }
4317 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4318
    }
4319
4320
    /**
4321
     * <p>
4322
     * Joins the elements of the provided array into a single String containing the provided list of elements.
4323
     * </p>
4324
     *
4325
     * <p>
4326
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
4327
     * by empty strings.
4328
     * </p>
4329
     *
4330
     * <pre>
4331
     * StringUtils.join(null, *)               = null
4332
     * StringUtils.join([], *)                 = ""
4333
     * StringUtils.join([null], *)             = ""
4334
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
4335
     * StringUtils.join([1, 2, 3], null) = "123"
4336
     * </pre>
4337
     *
4338
     * @param array
4339
     *            the array of values to join together, may be null
4340
     * @param separator
4341
     *            the separator character to use
4342
     * @param startIndex
4343
     *            the first index to start joining from. It is an error to pass in an end index past the end of the
4344
     *            array
4345
     * @param endIndex
4346
     *            the index to stop joining from (exclusive). It is an error to pass in an end index past the end of
4347
     *            the array
4348
     * @return the joined String, {@code null} if null array input
4349
     * @since 3.2
4350
     */
4351
    public static String join(final double[] array, final char separator, final int startIndex, final int endIndex) {
4352 1 1. join : negated conditional → KILLED
        if (array == null) {
4353 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4354
        }
4355 1 1. join : Replaced integer subtraction with addition → SURVIVED
        final int noOfItems = endIndex - startIndex;
4356 2 1. join : changed conditional boundary → SURVIVED
2. join : negated conditional → KILLED
        if (noOfItems <= 0) {
4357 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4358
        }
4359 1 1. join : Replaced integer multiplication with division → SURVIVED
        final StringBuilder buf = new StringBuilder(noOfItems * 16);
4360 3 1. join : changed conditional boundary → KILLED
2. join : Changed increment from 1 to -1 → KILLED
3. join : negated conditional → KILLED
        for (int i = startIndex; i < endIndex; i++) {
4361 2 1. join : changed conditional boundary → KILLED
2. join : negated conditional → KILLED
            if (i > startIndex) {
4362
                buf.append(separator);
4363
            }
4364
            buf.append(array[i]);
4365
        }
4366 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4367
    }
4368
4369
    /**
4370
     * <p>
4371
     * Joins the elements of the provided array into a single String containing the provided list of elements.
4372
     * </p>
4373
     *
4374
     * <p>
4375
     * No delimiter is added before or after the list. Null objects or empty strings within the array are represented
4376
     * by empty strings.
4377
     * </p>
4378
     *
4379
     * <pre>
4380
     * StringUtils.join(null, *)               = null
4381
     * StringUtils.join([], *)                 = ""
4382
     * StringUtils.join([null], *)             = ""
4383
     * StringUtils.join([1, 2, 3], ';')  = "1;2;3"
4384
     * StringUtils.join([1, 2, 3], null) = "123"
4385
     * </pre>
4386
     *
4387
     * @param array
4388
     *            the array of values to join together, may be null
4389
     * @param separator
4390
     *            the separator character to use
4391
     * @param startIndex
4392
     *            the first index to start joining from. It is an error to pass in an end index past the end of the
4393
     *            array
4394
     * @param endIndex
4395
     *            the index to stop joining from (exclusive). It is an error to pass in an end index past the end of
4396
     *            the array
4397
     * @return the joined String, {@code null} if null array input
4398
     * @since 3.2
4399
     */
4400
    public static String join(final float[] array, final char separator, final int startIndex, final int endIndex) {
4401 1 1. join : negated conditional → KILLED
        if (array == null) {
4402 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4403
        }
4404 1 1. join : Replaced integer subtraction with addition → SURVIVED
        final int noOfItems = endIndex - startIndex;
4405 2 1. join : changed conditional boundary → SURVIVED
2. join : negated conditional → KILLED
        if (noOfItems <= 0) {
4406 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4407
        }
4408 1 1. join : Replaced integer multiplication with division → SURVIVED
        final StringBuilder buf = new StringBuilder(noOfItems * 16);
4409 3 1. join : changed conditional boundary → KILLED
2. join : Changed increment from 1 to -1 → KILLED
3. join : negated conditional → KILLED
        for (int i = startIndex; i < endIndex; i++) {
4410 2 1. join : changed conditional boundary → KILLED
2. join : negated conditional → KILLED
            if (i > startIndex) {
4411
                buf.append(separator);
4412
            }
4413
            buf.append(array[i]);
4414
        }
4415 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4416
    }
4417
4418
4419
    /**
4420
     * <p>Joins the elements of the provided array into a single String
4421
     * containing the provided list of elements.</p>
4422
     *
4423
     * <p>No delimiter is added before or after the list.
4424
     * A {@code null} separator is the same as an empty String ("").
4425
     * Null objects or empty strings within the array are represented by
4426
     * empty strings.</p>
4427
     *
4428
     * <pre>
4429
     * StringUtils.join(null, *)                = null
4430
     * StringUtils.join([], *)                  = ""
4431
     * StringUtils.join([null], *)              = ""
4432
     * StringUtils.join(["a", "b", "c"], "--")  = "a--b--c"
4433
     * StringUtils.join(["a", "b", "c"], null)  = "abc"
4434
     * StringUtils.join(["a", "b", "c"], "")    = "abc"
4435
     * StringUtils.join([null, "", "a"], ',')   = ",,a"
4436
     * </pre>
4437
     *
4438
     * @param array  the array of values to join together, may be null
4439
     * @param separator  the separator character to use, null treated as ""
4440
     * @return the joined String, {@code null} if null array input
4441
     */
4442
    public static String join(final Object[] array, final String separator) {
4443 1 1. join : negated conditional → KILLED
        if (array == null) {
4444 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4445
        }
4446 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(array, separator, 0, array.length);
4447
    }
4448
4449
    /**
4450
     * <p>Joins the elements of the provided array into a single String
4451
     * containing the provided list of elements.</p>
4452
     *
4453
     * <p>No delimiter is added before or after the list.
4454
     * A {@code null} separator is the same as an empty String ("").
4455
     * Null objects or empty strings within the array are represented by
4456
     * empty strings.</p>
4457
     *
4458
     * <pre>
4459
     * StringUtils.join(null, *, *, *)                = null
4460
     * StringUtils.join([], *, *, *)                  = ""
4461
     * StringUtils.join([null], *, *, *)              = ""
4462
     * StringUtils.join(["a", "b", "c"], "--", 0, 3)  = "a--b--c"
4463
     * StringUtils.join(["a", "b", "c"], "--", 1, 3)  = "b--c"
4464
     * StringUtils.join(["a", "b", "c"], "--", 2, 3)  = "c"
4465
     * StringUtils.join(["a", "b", "c"], "--", 2, 2)  = ""
4466
     * StringUtils.join(["a", "b", "c"], null, 0, 3)  = "abc"
4467
     * StringUtils.join(["a", "b", "c"], "", 0, 3)    = "abc"
4468
     * StringUtils.join([null, "", "a"], ',', 0, 3)   = ",,a"
4469
     * </pre>
4470
     *
4471
     * @param array  the array of values to join together, may be null
4472
     * @param separator  the separator character to use, null treated as ""
4473
     * @param startIndex the first index to start joining from.
4474
     * @param endIndex the index to stop joining from (exclusive).
4475
     * @return the joined String, {@code null} if null array input; or the empty string
4476
     * if {@code endIndex - startIndex <= 0}. The number of joined entries is given by
4477
     * {@code endIndex - startIndex}
4478
     * @throws ArrayIndexOutOfBoundsException ife<br>
4479
     * {@code startIndex < 0} or <br>
4480
     * {@code startIndex >= array.length()} or <br>
4481
     * {@code endIndex < 0} or <br>
4482
     * {@code endIndex > array.length()}
4483
     */
4484
    public static String join(final Object[] array, String separator, final int startIndex, final int endIndex) {
4485 1 1. join : negated conditional → KILLED
        if (array == null) {
4486 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
            return null;
4487
        }
4488 1 1. join : negated conditional → KILLED
        if (separator == null) {
4489
            separator = EMPTY;
4490
        }
4491
4492
        // endIndex - startIndex > 0:   Len = NofStrings *(len(firstString) + len(separator))
4493
        //           (Assuming that all Strings are roughly equally long)
4494 1 1. join : Replaced integer subtraction with addition → SURVIVED
        final int noOfItems = endIndex - startIndex;
4495 2 1. join : changed conditional boundary → SURVIVED
2. join : negated conditional → KILLED
        if (noOfItems <= 0) {
4496 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4497
        }
4498
4499 1 1. join : Replaced integer multiplication with division → SURVIVED
        final StringBuilder buf = new StringBuilder(noOfItems * 16);
4500
4501 3 1. join : changed conditional boundary → KILLED
2. join : Changed increment from 1 to -1 → KILLED
3. join : negated conditional → KILLED
        for (int i = startIndex; i < endIndex; i++) {
4502 2 1. join : changed conditional boundary → KILLED
2. join : negated conditional → KILLED
            if (i > startIndex) {
4503
                buf.append(separator);
4504
            }
4505 1 1. join : negated conditional → KILLED
            if (array[i] != null) {
4506
                buf.append(array[i]);
4507
            }
4508
        }
4509 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4510
    }
4511
4512
    /**
4513
     * <p>Joins the elements of the provided {@code Iterator} into
4514
     * a single String containing the provided elements.</p>
4515
     *
4516
     * <p>No delimiter is added before or after the list. Null objects or empty
4517
     * strings within the iteration are represented by empty strings.</p>
4518
     *
4519
     * <p>See the examples here: {@link #join(Object[],char)}. </p>
4520
     *
4521
     * @param iterator  the {@code Iterator} of values to join together, may be null
4522
     * @param separator  the separator character to use
4523
     * @return the joined String, {@code null} if null iterator input
4524
     * @since 2.0
4525
     */
4526
    public static String join(final Iterator<?> iterator, final char separator) {
4527
4528
        // handle null, zero and one elements before building a buffer
4529 1 1. join : negated conditional → KILLED
        if (iterator == null) {
4530 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4531
        }
4532 1 1. join : negated conditional → KILLED
        if (!iterator.hasNext()) {
4533 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4534
        }
4535
        final Object first = iterator.next();
4536 1 1. join : negated conditional → KILLED
        if (!iterator.hasNext()) {
4537
            final String result = Objects.toString(first, "");
4538 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return result;
4539
        }
4540
4541
        // two or more elements
4542
        final StringBuilder buf = new StringBuilder(256); // Java default is 16, probably too small
4543 1 1. join : negated conditional → KILLED
        if (first != null) {
4544
            buf.append(first);
4545
        }
4546
4547 1 1. join : negated conditional → KILLED
        while (iterator.hasNext()) {
4548
            buf.append(separator);
4549
            final Object obj = iterator.next();
4550 1 1. join : negated conditional → KILLED
            if (obj != null) {
4551
                buf.append(obj);
4552
            }
4553
        }
4554
4555 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4556
    }
4557
4558
    /**
4559
     * <p>Joins the elements of the provided {@code Iterator} into
4560
     * a single String containing the provided elements.</p>
4561
     *
4562
     * <p>No delimiter is added before or after the list.
4563
     * A {@code null} separator is the same as an empty String ("").</p>
4564
     *
4565
     * <p>See the examples here: {@link #join(Object[],String)}. </p>
4566
     *
4567
     * @param iterator  the {@code Iterator} of values to join together, may be null
4568
     * @param separator  the separator character to use, null treated as ""
4569
     * @return the joined String, {@code null} if null iterator input
4570
     */
4571
    public static String join(final Iterator<?> iterator, final String separator) {
4572
4573
        // handle null, zero and one elements before building a buffer
4574 1 1. join : negated conditional → KILLED
        if (iterator == null) {
4575 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4576
        }
4577 1 1. join : negated conditional → KILLED
        if (!iterator.hasNext()) {
4578 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
4579
        }
4580
        final Object first = iterator.next();
4581 1 1. join : negated conditional → KILLED
        if (!iterator.hasNext()) {
4582
            final String result = Objects.toString(first, "");
4583 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return result;
4584
        }
4585
4586
        // two or more elements
4587
        final StringBuilder buf = new StringBuilder(256); // Java default is 16, probably too small
4588 1 1. join : negated conditional → KILLED
        if (first != null) {
4589
            buf.append(first);
4590
        }
4591
4592 1 1. join : negated conditional → KILLED
        while (iterator.hasNext()) {
4593 1 1. join : negated conditional → KILLED
            if (separator != null) {
4594
                buf.append(separator);
4595
            }
4596
            final Object obj = iterator.next();
4597 1 1. join : negated conditional → KILLED
            if (obj != null) {
4598
                buf.append(obj);
4599
            }
4600
        }
4601 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return buf.toString();
4602
    }
4603
4604
    /**
4605
     * <p>Joins the elements of the provided {@code Iterable} into
4606
     * a single String containing the provided elements.</p>
4607
     *
4608
     * <p>No delimiter is added before or after the list. Null objects or empty
4609
     * strings within the iteration are represented by empty strings.</p>
4610
     *
4611
     * <p>See the examples here: {@link #join(Object[],char)}. </p>
4612
     *
4613
     * @param iterable  the {@code Iterable} providing the values to join together, may be null
4614
     * @param separator  the separator character to use
4615
     * @return the joined String, {@code null} if null iterator input
4616
     * @since 2.3
4617
     */
4618
    public static String join(final Iterable<?> iterable, final char separator) {
4619 1 1. join : negated conditional → KILLED
        if (iterable == null) {
4620 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4621
        }
4622 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(iterable.iterator(), separator);
4623
    }
4624
4625
    /**
4626
     * <p>Joins the elements of the provided {@code Iterable} into
4627
     * a single String containing the provided elements.</p>
4628
     *
4629
     * <p>No delimiter is added before or after the list.
4630
     * A {@code null} separator is the same as an empty String ("").</p>
4631
     *
4632
     * <p>See the examples here: {@link #join(Object[],String)}. </p>
4633
     *
4634
     * @param iterable  the {@code Iterable} providing the values to join together, may be null
4635
     * @param separator  the separator character to use, null treated as ""
4636
     * @return the joined String, {@code null} if null iterator input
4637
     * @since 2.3
4638
     */
4639
    public static String join(final Iterable<?> iterable, final String separator) {
4640 1 1. join : negated conditional → KILLED
        if (iterable == null) {
4641 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
4642
        }
4643 1 1. join : mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(iterable.iterator(), separator);
4644
    }
4645
4646
    /**
4647
     * <p>Joins the elements of the provided varargs into a
4648
     * single String containing the provided elements.</p>
4649
     *
4650
     * <p>No delimiter is added before or after the list.
4651
     * {@code null} elements and separator are treated as empty Strings ("").</p>
4652
     *
4653
     * <pre>
4654
     * StringUtils.joinWith(",", {"a", "b"})        = "a,b"
4655
     * StringUtils.joinWith(",", {"a", "b",""})     = "a,b,"
4656
     * StringUtils.joinWith(",", {"a", null, "b"})  = "a,,b"
4657
     * StringUtils.joinWith(null, {"a", "b"})       = "ab"
4658
     * </pre>
4659
     *
4660
     * @param separator the separator character to use, null treated as ""
4661
     * @param objects the varargs providing the values to join together. {@code null} elements are treated as ""
4662
     * @return the joined String.
4663
     * @throws java.lang.IllegalArgumentException if a null varargs is provided
4664
     * @since 3.5
4665
     */
4666
    public static String joinWith(final String separator, final Object... objects) {
4667 1 1. joinWith : negated conditional → KILLED
        if (objects == null) {
4668
            throw new IllegalArgumentException("Object varargs must not be null");
4669
        }
4670
4671
        final String sanitizedSeparator = defaultString(separator, StringUtils.EMPTY);
4672
4673
        final StringBuilder result = new StringBuilder();
4674
4675
        final Iterator<Object> iterator = Arrays.asList(objects).iterator();
4676 1 1. joinWith : negated conditional → KILLED
        while (iterator.hasNext()) {
4677
            final String value = Objects.toString(iterator.next(), "");
4678
            result.append(value);
4679
4680 1 1. joinWith : negated conditional → KILLED
            if (iterator.hasNext()) {
4681
                result.append(sanitizedSeparator);
4682
            }
4683
        }
4684
4685 1 1. joinWith : mutated return of Object value for org/apache/commons/lang3/StringUtils::joinWith to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return result.toString();
4686
    }
4687
4688
    // Delete
4689
    //-----------------------------------------------------------------------
4690
    /**
4691
     * <p>Deletes all whitespaces from a String as defined by
4692
     * {@link Character#isWhitespace(char)}.</p>
4693
     *
4694
     * <pre>
4695
     * StringUtils.deleteWhitespace(null)         = null
4696
     * StringUtils.deleteWhitespace("")           = ""
4697
     * StringUtils.deleteWhitespace("abc")        = "abc"
4698
     * StringUtils.deleteWhitespace("   ab  c  ") = "abc"
4699
     * </pre>
4700
     *
4701
     * @param str  the String to delete whitespace from, may be null
4702
     * @return the String without whitespaces, {@code null} if null String input
4703
     */
4704
    public static String deleteWhitespace(final String str) {
4705 1 1. deleteWhitespace : negated conditional → KILLED
        if (isEmpty(str)) {
4706 1 1. deleteWhitespace : mutated return of Object value for org/apache/commons/lang3/StringUtils::deleteWhitespace to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
4707
        }
4708
        final int sz = str.length();
4709
        final char[] chs = new char[sz];
4710
        int count = 0;
4711 3 1. deleteWhitespace : changed conditional boundary → KILLED
2. deleteWhitespace : Changed increment from 1 to -1 → KILLED
3. deleteWhitespace : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
4712 1 1. deleteWhitespace : negated conditional → KILLED
            if (!Character.isWhitespace(str.charAt(i))) {
4713 1 1. deleteWhitespace : Changed increment from 1 to -1 → KILLED
                chs[count++] = str.charAt(i);
4714
            }
4715
        }
4716 1 1. deleteWhitespace : negated conditional → KILLED
        if (count == sz) {
4717 1 1. deleteWhitespace : mutated return of Object value for org/apache/commons/lang3/StringUtils::deleteWhitespace to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
4718
        }
4719 1 1. deleteWhitespace : mutated return of Object value for org/apache/commons/lang3/StringUtils::deleteWhitespace to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new String(chs, 0, count);
4720
    }
4721
4722
    // Remove
4723
    //-----------------------------------------------------------------------
4724
    /**
4725
     * <p>Removes a substring only if it is at the beginning of a source string,
4726
     * otherwise returns the source string.</p>
4727
     *
4728
     * <p>A {@code null} source string will return {@code null}.
4729
     * An empty ("") source string will return the empty string.
4730
     * A {@code null} search string will return the source string.</p>
4731
     *
4732
     * <pre>
4733
     * StringUtils.removeStart(null, *)      = null
4734
     * StringUtils.removeStart("", *)        = ""
4735
     * StringUtils.removeStart(*, null)      = *
4736
     * StringUtils.removeStart("www.domain.com", "www.")   = "domain.com"
4737
     * StringUtils.removeStart("domain.com", "www.")       = "domain.com"
4738
     * StringUtils.removeStart("www.domain.com", "domain") = "www.domain.com"
4739
     * StringUtils.removeStart("abc", "")    = "abc"
4740
     * </pre>
4741
     *
4742
     * @param str  the source String to search, may be null
4743
     * @param remove  the String to search for and remove, may be null
4744
     * @return the substring with the string removed if found,
4745
     *  {@code null} if null String input
4746
     * @since 2.1
4747
     */
4748
    public static String removeStart(final String str, final String remove) {
4749 2 1. removeStart : negated conditional → KILLED
2. removeStart : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(remove)) {
4750 1 1. removeStart : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStart to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
4751
        }
4752 1 1. removeStart : negated conditional → KILLED
        if (str.startsWith(remove)){
4753 1 1. removeStart : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStart to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str.substring(remove.length());
4754
        }
4755 1 1. removeStart : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStart to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str;
4756
    }
4757
4758
    /**
4759
     * <p>Case insensitive removal of a substring if it is at the beginning of a source string,
4760
     * otherwise returns the source string.</p>
4761
     *
4762
     * <p>A {@code null} source string will return {@code null}.
4763
     * An empty ("") source string will return the empty string.
4764
     * A {@code null} search string will return the source string.</p>
4765
     *
4766
     * <pre>
4767
     * StringUtils.removeStartIgnoreCase(null, *)      = null
4768
     * StringUtils.removeStartIgnoreCase("", *)        = ""
4769
     * StringUtils.removeStartIgnoreCase(*, null)      = *
4770
     * StringUtils.removeStartIgnoreCase("www.domain.com", "www.")   = "domain.com"
4771
     * StringUtils.removeStartIgnoreCase("www.domain.com", "WWW.")   = "domain.com"
4772
     * StringUtils.removeStartIgnoreCase("domain.com", "www.")       = "domain.com"
4773
     * StringUtils.removeStartIgnoreCase("www.domain.com", "domain") = "www.domain.com"
4774
     * StringUtils.removeStartIgnoreCase("abc", "")    = "abc"
4775
     * </pre>
4776
     *
4777
     * @param str  the source String to search, may be null
4778
     * @param remove  the String to search for (case insensitive) and remove, may be null
4779
     * @return the substring with the string removed if found,
4780
     *  {@code null} if null String input
4781
     * @since 2.4
4782
     */
4783
    public static String removeStartIgnoreCase(final String str, final String remove) {
4784 2 1. removeStartIgnoreCase : negated conditional → KILLED
2. removeStartIgnoreCase : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(remove)) {
4785 1 1. removeStartIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStartIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
4786
        }
4787 1 1. removeStartIgnoreCase : negated conditional → KILLED
        if (startsWithIgnoreCase(str, remove)) {
4788 1 1. removeStartIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStartIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str.substring(remove.length());
4789
        }
4790 1 1. removeStartIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStartIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str;
4791
    }
4792
4793
    /**
4794
     * <p>Removes a substring only if it is at the end of a source string,
4795
     * otherwise returns the source string.</p>
4796
     *
4797
     * <p>A {@code null} source string will return {@code null}.
4798
     * An empty ("") source string will return the empty string.
4799
     * A {@code null} search string will return the source string.</p>
4800
     *
4801
     * <pre>
4802
     * StringUtils.removeEnd(null, *)      = null
4803
     * StringUtils.removeEnd("", *)        = ""
4804
     * StringUtils.removeEnd(*, null)      = *
4805
     * StringUtils.removeEnd("www.domain.com", ".com.")  = "www.domain.com"
4806
     * StringUtils.removeEnd("www.domain.com", ".com")   = "www.domain"
4807
     * StringUtils.removeEnd("www.domain.com", "domain") = "www.domain.com"
4808
     * StringUtils.removeEnd("abc", "")    = "abc"
4809
     * </pre>
4810
     *
4811
     * @param str  the source String to search, may be null
4812
     * @param remove  the String to search for and remove, may be null
4813
     * @return the substring with the string removed if found,
4814
     *  {@code null} if null String input
4815
     * @since 2.1
4816
     */
4817
    public static String removeEnd(final String str, final String remove) {
4818 2 1. removeEnd : negated conditional → KILLED
2. removeEnd : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(remove)) {
4819 1 1. removeEnd : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
4820
        }
4821 1 1. removeEnd : negated conditional → KILLED
        if (str.endsWith(remove)) {
4822 2 1. removeEnd : Replaced integer subtraction with addition → KILLED
2. removeEnd : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str.substring(0, str.length() - remove.length());
4823
        }
4824 1 1. removeEnd : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str;
4825
    }
4826
4827
    /**
4828
     * <p>Case insensitive removal of a substring if it is at the end of a source string,
4829
     * otherwise returns the source string.</p>
4830
     *
4831
     * <p>A {@code null} source string will return {@code null}.
4832
     * An empty ("") source string will return the empty string.
4833
     * A {@code null} search string will return the source string.</p>
4834
     *
4835
     * <pre>
4836
     * StringUtils.removeEndIgnoreCase(null, *)      = null
4837
     * StringUtils.removeEndIgnoreCase("", *)        = ""
4838
     * StringUtils.removeEndIgnoreCase(*, null)      = *
4839
     * StringUtils.removeEndIgnoreCase("www.domain.com", ".com.")  = "www.domain.com"
4840
     * StringUtils.removeEndIgnoreCase("www.domain.com", ".com")   = "www.domain"
4841
     * StringUtils.removeEndIgnoreCase("www.domain.com", "domain") = "www.domain.com"
4842
     * StringUtils.removeEndIgnoreCase("abc", "")    = "abc"
4843
     * StringUtils.removeEndIgnoreCase("www.domain.com", ".COM") = "www.domain")
4844
     * StringUtils.removeEndIgnoreCase("www.domain.COM", ".com") = "www.domain")
4845
     * </pre>
4846
     *
4847
     * @param str  the source String to search, may be null
4848
     * @param remove  the String to search for (case insensitive) and remove, may be null
4849
     * @return the substring with the string removed if found,
4850
     *  {@code null} if null String input
4851
     * @since 2.4
4852
     */
4853
    public static String removeEndIgnoreCase(final String str, final String remove) {
4854 2 1. removeEndIgnoreCase : negated conditional → KILLED
2. removeEndIgnoreCase : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(remove)) {
4855 1 1. removeEndIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEndIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
4856
        }
4857 1 1. removeEndIgnoreCase : negated conditional → KILLED
        if (endsWithIgnoreCase(str, remove)) {
4858 2 1. removeEndIgnoreCase : Replaced integer subtraction with addition → KILLED
2. removeEndIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEndIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str.substring(0, str.length() - remove.length());
4859
        }
4860 1 1. removeEndIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEndIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str;
4861
    }
4862
4863
    /**
4864
     * <p>Removes all occurrences of a substring from within the source string.</p>
4865
     *
4866
     * <p>A {@code null} source string will return {@code null}.
4867
     * An empty ("") source string will return the empty string.
4868
     * A {@code null} remove string will return the source string.
4869
     * An empty ("") remove string will return the source string.</p>
4870
     *
4871
     * <pre>
4872
     * StringUtils.remove(null, *)        = null
4873
     * StringUtils.remove("", *)          = ""
4874
     * StringUtils.remove(*, null)        = *
4875
     * StringUtils.remove(*, "")          = *
4876
     * StringUtils.remove("queued", "ue") = "qd"
4877
     * StringUtils.remove("queued", "zz") = "queued"
4878
     * </pre>
4879
     *
4880
     * @param str  the source String to search, may be null
4881
     * @param remove  the String to search for and remove, may be null
4882
     * @return the substring with the string removed if found,
4883
     *  {@code null} if null String input
4884
     * @since 2.1
4885
     */
4886
    public static String remove(final String str, final String remove) {
4887 2 1. remove : negated conditional → KILLED
2. remove : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(remove)) {
4888 1 1. remove : mutated return of Object value for org/apache/commons/lang3/StringUtils::remove to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
4889
        }
4890 1 1. remove : mutated return of Object value for org/apache/commons/lang3/StringUtils::remove to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replace(str, remove, EMPTY, -1);
4891
    }
4892
4893
    /**
4894
     * <p>
4895
     * Case insensitive removal of all occurrences of a substring from within
4896
     * the source string.
4897
     * </p>
4898
     *
4899
     * <p>
4900
     * A {@code null} source string will return {@code null}. An empty ("")
4901
     * source string will return the empty string. A {@code null} remove string
4902
     * will return the source string. An empty ("") remove string will return
4903
     * the source string.
4904
     * </p>
4905
     *
4906
     * <pre>
4907
     * StringUtils.removeIgnoreCase(null, *)        = null
4908
     * StringUtils.removeIgnoreCase("", *)          = ""
4909
     * StringUtils.removeIgnoreCase(*, null)        = *
4910
     * StringUtils.removeIgnoreCase(*, "")          = *
4911
     * StringUtils.removeIgnoreCase("queued", "ue") = "qd"
4912
     * StringUtils.removeIgnoreCase("queued", "zz") = "queued"
4913
     * StringUtils.removeIgnoreCase("quEUed", "UE") = "qd"
4914
     * StringUtils.removeIgnoreCase("queued", "zZ") = "queued"
4915
     * </pre>
4916
     *
4917
     * @param str
4918
     *            the source String to search, may be null
4919
     * @param remove
4920
     *            the String to search for (case insensitive) and remove, may be
4921
     *            null
4922
     * @return the substring with the string removed if found, {@code null} if
4923
     *         null String input
4924
     * @since 3.5
4925
     */
4926
    public static String removeIgnoreCase(final String str, final String remove) {
4927 2 1. removeIgnoreCase : negated conditional → KILLED
2. removeIgnoreCase : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(remove)) {
4928 1 1. removeIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
4929
        }
4930 1 1. removeIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replaceIgnoreCase(str, remove, EMPTY, -1);
4931
    }
4932
4933
    /**
4934
     * <p>Removes all occurrences of a character from within the source string.</p>
4935
     *
4936
     * <p>A {@code null} source string will return {@code null}.
4937
     * An empty ("") source string will return the empty string.</p>
4938
     *
4939
     * <pre>
4940
     * StringUtils.remove(null, *)       = null
4941
     * StringUtils.remove("", *)         = ""
4942
     * StringUtils.remove("queued", 'u') = "qeed"
4943
     * StringUtils.remove("queued", 'z') = "queued"
4944
     * </pre>
4945
     *
4946
     * @param str  the source String to search, may be null
4947
     * @param remove  the char to search for and remove, may be null
4948
     * @return the substring with the char removed if found,
4949
     *  {@code null} if null String input
4950
     * @since 2.1
4951
     */
4952
    public static String remove(final String str, final char remove) {
4953 2 1. remove : negated conditional → KILLED
2. remove : negated conditional → KILLED
        if (isEmpty(str) || str.indexOf(remove) == INDEX_NOT_FOUND) {
4954 1 1. remove : mutated return of Object value for org/apache/commons/lang3/StringUtils::remove to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
4955
        }
4956
        final char[] chars = str.toCharArray();
4957
        int pos = 0;
4958 3 1. remove : changed conditional boundary → KILLED
2. remove : Changed increment from 1 to -1 → KILLED
3. remove : negated conditional → KILLED
        for (int i = 0; i < chars.length; i++) {
4959 1 1. remove : negated conditional → KILLED
            if (chars[i] != remove) {
4960 1 1. remove : Changed increment from 1 to -1 → KILLED
                chars[pos++] = chars[i];
4961
            }
4962
        }
4963 1 1. remove : mutated return of Object value for org/apache/commons/lang3/StringUtils::remove to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new String(chars, 0, pos);
4964
    }
4965
4966
    /**
4967
     * <p>Removes each substring of the text String that matches the given regular expression.</p>
4968
     *
4969
     * This method is a {@code null} safe equivalent to:
4970
     * <ul>
4971
     *  <li>{@code text.replaceAll(regex, StringUtils.EMPTY)}</li>
4972
     *  <li>{@code Pattern.compile(regex).matcher(text).replaceAll(StringUtils.EMPTY)}</li>
4973
     * </ul>
4974
     *
4975
     * <p>A {@code null} reference passed to this method is a no-op.</p>
4976
     *
4977
     * <p>Unlike in the {@link #removePattern(String, String)} method, the {@link Pattern#DOTALL} option
4978
     * is NOT automatically added.
4979
     * To use the DOTALL option prepend <code>"(?s)"</code> to the regex.
4980
     * DOTALL is also know as single-line mode in Perl.</p>
4981
     *
4982
     * <pre>
4983
     * StringUtils.removeAll(null, *)      = null
4984
     * StringUtils.removeAll("any", null)  = "any"
4985
     * StringUtils.removeAll("any", "")    = "any"
4986
     * StringUtils.removeAll("any", ".*")  = ""
4987
     * StringUtils.removeAll("any", ".+")  = ""
4988
     * StringUtils.removeAll("abc", ".?")  = ""
4989
     * StringUtils.removeAll("A&lt;__&gt;\n&lt;__&gt;B", "&lt;.*&gt;")      = "A\nB"
4990
     * StringUtils.removeAll("A&lt;__&gt;\n&lt;__&gt;B", "(?s)&lt;.*&gt;")  = "AB"
4991
     * StringUtils.removeAll("ABCabc123abc", "[a-z]")     = "ABC123"
4992
     * </pre>
4993
     *
4994
     * @param text  text to remove from, may be null
4995
     * @param regex  the regular expression to which this string is to be matched
4996
     * @return  the text with any removes processed,
4997
     *              {@code null} if null String input
4998
     *
4999
     * @throws  java.util.regex.PatternSyntaxException
5000
     *              if the regular expression's syntax is invalid
5001
     *
5002
     * @see #replaceAll(String, String, String)
5003
     * @see #removePattern(String, String)
5004
     * @see String#replaceAll(String, String)
5005
     * @see java.util.regex.Pattern
5006
     * @see java.util.regex.Pattern#DOTALL
5007
     * @since 3.5
5008
     */
5009
    public static String removeAll(final String text, final String regex) {
5010 1 1. removeAll : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeAll to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replaceAll(text, regex, StringUtils.EMPTY);
5011
    }
5012
5013
    /**
5014
     * <p>Removes the first substring of the text string that matches the given regular expression.</p>
5015
     *
5016
     * This method is a {@code null} safe equivalent to:
5017
     * <ul>
5018
     *  <li>{@code text.replaceFirst(regex, StringUtils.EMPTY)}</li>
5019
     *  <li>{@code Pattern.compile(regex).matcher(text).replaceFirst(StringUtils.EMPTY)}</li>
5020
     * </ul>
5021
     *
5022
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5023
     *
5024
     * <p>The {@link Pattern#DOTALL} option is NOT automatically added.
5025
     * To use the DOTALL option prepend <code>"(?s)"</code> to the regex.
5026
     * DOTALL is also know as single-line mode in Perl.</p>
5027
     *
5028
     * <pre>
5029
     * StringUtils.removeFirst(null, *)      = null
5030
     * StringUtils.removeFirst("any", null)  = "any"
5031
     * StringUtils.removeFirst("any", "")    = "any"
5032
     * StringUtils.removeFirst("any", ".*")  = ""
5033
     * StringUtils.removeFirst("any", ".+")  = ""
5034
     * StringUtils.removeFirst("abc", ".?")  = "bc"
5035
     * StringUtils.removeFirst("A&lt;__&gt;\n&lt;__&gt;B", "&lt;.*&gt;")      = "A\n&lt;__&gt;B"
5036
     * StringUtils.removeFirst("A&lt;__&gt;\n&lt;__&gt;B", "(?s)&lt;.*&gt;")  = "AB"
5037
     * StringUtils.removeFirst("ABCabc123", "[a-z]")          = "ABCbc123"
5038
     * StringUtils.removeFirst("ABCabc123abc", "[a-z]+")      = "ABC123abc"
5039
     * </pre>
5040
     *
5041
     * @param text  text to remove from, may be null
5042
     * @param regex  the regular expression to which this string is to be matched
5043
     * @return  the text with the first replacement processed,
5044
     *              {@code null} if null String input
5045
     *
5046
     * @throws  java.util.regex.PatternSyntaxException
5047
     *              if the regular expression's syntax is invalid
5048
     *
5049
     * @see #replaceFirst(String, String, String)
5050
     * @see String#replaceFirst(String, String)
5051
     * @see java.util.regex.Pattern
5052
     * @see java.util.regex.Pattern#DOTALL
5053
     * @since 3.5
5054
     */
5055
    public static String removeFirst(final String text, final String regex) {
5056 1 1. removeFirst : mutated return of Object value for org/apache/commons/lang3/StringUtils::removeFirst to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replaceFirst(text, regex, StringUtils.EMPTY);
5057
    }
5058
5059
    // Replacing
5060
    //-----------------------------------------------------------------------
5061
    /**
5062
     * <p>Replaces a String with another String inside a larger String, once.</p>
5063
     *
5064
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5065
     *
5066
     * <pre>
5067
     * StringUtils.replaceOnce(null, *, *)        = null
5068
     * StringUtils.replaceOnce("", *, *)          = ""
5069
     * StringUtils.replaceOnce("any", null, *)    = "any"
5070
     * StringUtils.replaceOnce("any", *, null)    = "any"
5071
     * StringUtils.replaceOnce("any", "", *)      = "any"
5072
     * StringUtils.replaceOnce("aba", "a", null)  = "aba"
5073
     * StringUtils.replaceOnce("aba", "a", "")    = "ba"
5074
     * StringUtils.replaceOnce("aba", "a", "z")   = "zba"
5075
     * </pre>
5076
     *
5077
     * @see #replace(String text, String searchString, String replacement, int max)
5078
     * @param text  text to search and replace in, may be null
5079
     * @param searchString  the String to search for, may be null
5080
     * @param replacement  the String to replace with, may be null
5081
     * @return the text with any replacements processed,
5082
     *  {@code null} if null String input
5083
     */
5084
    public static String replaceOnce(final String text, final String searchString, final String replacement) {
5085 1 1. replaceOnce : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceOnce to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replace(text, searchString, replacement, 1);
5086
    }
5087
5088
    /**
5089
     * <p>Case insensitively replaces a String with another String inside a larger String, once.</p>
5090
     *
5091
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5092
     *
5093
     * <pre>
5094
     * StringUtils.replaceOnceIgnoreCase(null, *, *)        = null
5095
     * StringUtils.replaceOnceIgnoreCase("", *, *)          = ""
5096
     * StringUtils.replaceOnceIgnoreCase("any", null, *)    = "any"
5097
     * StringUtils.replaceOnceIgnoreCase("any", *, null)    = "any"
5098
     * StringUtils.replaceOnceIgnoreCase("any", "", *)      = "any"
5099
     * StringUtils.replaceOnceIgnoreCase("aba", "a", null)  = "aba"
5100
     * StringUtils.replaceOnceIgnoreCase("aba", "a", "")    = "ba"
5101
     * StringUtils.replaceOnceIgnoreCase("aba", "a", "z")   = "zba"
5102
     * StringUtils.replaceOnceIgnoreCase("FoOFoofoo", "foo", "") = "Foofoo"
5103
     * </pre>
5104
     *
5105
     * @see #replaceIgnoreCase(String text, String searchString, String replacement, int max)
5106
     * @param text  text to search and replace in, may be null
5107
     * @param searchString  the String to search for (case insensitive), may be null
5108
     * @param replacement  the String to replace with, may be null
5109
     * @return the text with any replacements processed,
5110
     *  {@code null} if null String input
5111
     * @since 3.5
5112
     */
5113
    public static String replaceOnceIgnoreCase(final String text, final String searchString, final String replacement) {
5114 1 1. replaceOnceIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceOnceIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replaceIgnoreCase(text, searchString, replacement, 1);
5115
    }
5116
5117
    /**
5118
     * <p>Replaces each substring of the source String that matches the given regular expression with the given
5119
     * replacement using the {@link Pattern#DOTALL} option. DOTALL is also know as single-line mode in Perl.</p>
5120
     *
5121
     * This call is a {@code null} safe equivalent to:
5122
     * <ul>
5123
     * <li>{@code source.replaceAll(&quot;(?s)&quot; + regex, replacement)}</li>
5124
     * <li>{@code Pattern.compile(regex, Pattern.DOTALL).matcher(source).replaceAll(replacement)}</li>
5125
     * </ul>
5126
     *
5127
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5128
     *
5129
     * <pre>
5130
     * StringUtils.replacePattern(null, *, *)       = null
5131
     * StringUtils.replacePattern("any", null, *)   = "any"
5132
     * StringUtils.replacePattern("any", *, null)   = "any"
5133
     * StringUtils.replacePattern("", "", "zzz")    = "zzz"
5134
     * StringUtils.replacePattern("", ".*", "zzz")  = "zzz"
5135
     * StringUtils.replacePattern("", ".+", "zzz")  = ""
5136
     * StringUtils.replacePattern("&lt;__&gt;\n&lt;__&gt;", "&lt;.*&gt;", "z")       = "z"
5137
     * StringUtils.replacePattern("ABCabc123", "[a-z]", "_")       = "ABC___123"
5138
     * StringUtils.replacePattern("ABCabc123", "[^A-Z0-9]+", "_")  = "ABC_123"
5139
     * StringUtils.replacePattern("ABCabc123", "[^A-Z0-9]+", "")   = "ABC123"
5140
     * StringUtils.replacePattern("Lorem ipsum  dolor   sit", "( +)([a-z]+)", "_$2")  = "Lorem_ipsum_dolor_sit"
5141
     * </pre>
5142
     *
5143
     * @param source
5144
     *            the source string
5145
     * @param regex
5146
     *            the regular expression to which this string is to be matched
5147
     * @param replacement
5148
     *            the string to be substituted for each match
5149
     * @return The resulting {@code String}
5150
     * @see #replaceAll(String, String, String)
5151
     * @see String#replaceAll(String, String)
5152
     * @see Pattern#DOTALL
5153
     * @since 3.2
5154
     * @since 3.5 Changed {@code null} reference passed to this method is a no-op.
5155
     */
5156
    public static String replacePattern(final String source, final String regex, final String replacement) {
5157 3 1. replacePattern : negated conditional → KILLED
2. replacePattern : negated conditional → KILLED
3. replacePattern : negated conditional → KILLED
        if (source == null || regex == null || replacement == null) {
5158 1 1. replacePattern : mutated return of Object value for org/apache/commons/lang3/StringUtils::replacePattern to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return source;
5159
        }
5160 1 1. replacePattern : mutated return of Object value for org/apache/commons/lang3/StringUtils::replacePattern to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return Pattern.compile(regex, Pattern.DOTALL).matcher(source).replaceAll(replacement);
5161
    }
5162
5163
    /**
5164
     * <p>Removes each substring of the source String that matches the given regular expression using the DOTALL option.
5165
     * </p>
5166
     *
5167
     * This call is a {@code null} safe equivalent to:
5168
     * <ul>
5169
     * <li>{@code source.replaceAll(&quot;(?s)&quot; + regex, StringUtils.EMPTY)}</li>
5170
     * <li>{@code Pattern.compile(regex, Pattern.DOTALL).matcher(source).replaceAll(StringUtils.EMPTY)}</li>
5171
     * </ul>
5172
     *
5173
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5174
     *
5175
     * <pre>
5176
     * StringUtils.removePattern(null, *)       = null
5177
     * StringUtils.removePattern("any", null)   = "any"
5178
     * StringUtils.removePattern("A&lt;__&gt;\n&lt;__&gt;B", "&lt;.*&gt;")  = "AB"
5179
     * StringUtils.removePattern("ABCabc123", "[a-z]")    = "ABC123"
5180
     * </pre>
5181
     *
5182
     * @param source
5183
     *            the source string
5184
     * @param regex
5185
     *            the regular expression to which this string is to be matched
5186
     * @return The resulting {@code String}
5187
     * @see #replacePattern(String, String, String)
5188
     * @see String#replaceAll(String, String)
5189
     * @see Pattern#DOTALL
5190
     * @since 3.2
5191
     * @since 3.5 Changed {@code null} reference passed to this method is a no-op.
5192
     */
5193
    public static String removePattern(final String source, final String regex) {
5194 1 1. removePattern : mutated return of Object value for org/apache/commons/lang3/StringUtils::removePattern to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replacePattern(source, regex, StringUtils.EMPTY);
5195
    }
5196
5197
    /**
5198
     * <p>Replaces each substring of the text String that matches the given regular expression
5199
     * with the given replacement.</p>
5200
     *
5201
     * This method is a {@code null} safe equivalent to:
5202
     * <ul>
5203
     *  <li>{@code text.replaceAll(regex, replacement)}</li>
5204
     *  <li>{@code Pattern.compile(regex).matcher(text).replaceAll(replacement)}</li>
5205
     * </ul>
5206
     *
5207
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5208
     *
5209
     * <p>Unlike in the {@link #replacePattern(String, String, String)} method, the {@link Pattern#DOTALL} option
5210
     * is NOT automatically added.
5211
     * To use the DOTALL option prepend <code>"(?s)"</code> to the regex.
5212
     * DOTALL is also know as single-line mode in Perl.</p>
5213
     *
5214
     * <pre>
5215
     * StringUtils.replaceAll(null, *, *)       = null
5216
     * StringUtils.replaceAll("any", null, *)   = "any"
5217
     * StringUtils.replaceAll("any", *, null)   = "any"
5218
     * StringUtils.replaceAll("", "", "zzz")    = "zzz"
5219
     * StringUtils.replaceAll("", ".*", "zzz")  = "zzz"
5220
     * StringUtils.replaceAll("", ".+", "zzz")  = ""
5221
     * StringUtils.replaceAll("abc", "", "ZZ")  = "ZZaZZbZZcZZ"
5222
     * StringUtils.replaceAll("&lt;__&gt;\n&lt;__&gt;", "&lt;.*&gt;", "z")      = "z\nz"
5223
     * StringUtils.replaceAll("&lt;__&gt;\n&lt;__&gt;", "(?s)&lt;.*&gt;", "z")  = "z"
5224
     * StringUtils.replaceAll("ABCabc123", "[a-z]", "_")       = "ABC___123"
5225
     * StringUtils.replaceAll("ABCabc123", "[^A-Z0-9]+", "_")  = "ABC_123"
5226
     * StringUtils.replaceAll("ABCabc123", "[^A-Z0-9]+", "")   = "ABC123"
5227
     * StringUtils.replaceAll("Lorem ipsum  dolor   sit", "( +)([a-z]+)", "_$2")  = "Lorem_ipsum_dolor_sit"
5228
     * </pre>
5229
     *
5230
     * @param text  text to search and replace in, may be null
5231
     * @param regex  the regular expression to which this string is to be matched
5232
     * @param replacement  the string to be substituted for each match
5233
     * @return  the text with any replacements processed,
5234
     *              {@code null} if null String input
5235
     *
5236
     * @throws  java.util.regex.PatternSyntaxException
5237
     *              if the regular expression's syntax is invalid
5238
     *
5239
     * @see #replacePattern(String, String, String)
5240
     * @see String#replaceAll(String, String)
5241
     * @see java.util.regex.Pattern
5242
     * @see java.util.regex.Pattern#DOTALL
5243
     * @since 3.5
5244
     */
5245
    public static String replaceAll(final String text, final String regex, final String replacement) {
5246 3 1. replaceAll : negated conditional → KILLED
2. replaceAll : negated conditional → KILLED
3. replaceAll : negated conditional → KILLED
        if (text == null || regex == null|| replacement == null ) {
5247 1 1. replaceAll : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceAll to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return text;
5248
        }
5249 1 1. replaceAll : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceAll to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return text.replaceAll(regex, replacement);
5250
    }
5251
5252
    /**
5253
     * <p>Replaces the first substring of the text string that matches the given regular expression
5254
     * with the given replacement.</p>
5255
     *
5256
     * This method is a {@code null} safe equivalent to:
5257
     * <ul>
5258
     *  <li>{@code text.replaceFirst(regex, replacement)}</li>
5259
     *  <li>{@code Pattern.compile(regex).matcher(text).replaceFirst(replacement)}</li>
5260
     * </ul>
5261
     *
5262
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5263
     *
5264
     * <p>The {@link Pattern#DOTALL} option is NOT automatically added.
5265
     * To use the DOTALL option prepend <code>"(?s)"</code> to the regex.
5266
     * DOTALL is also know as single-line mode in Perl.</p>
5267
     *
5268
     * <pre>
5269
     * StringUtils.replaceFirst(null, *, *)       = null
5270
     * StringUtils.replaceFirst("any", null, *)   = "any"
5271
     * StringUtils.replaceFirst("any", *, null)   = "any"
5272
     * StringUtils.replaceFirst("", "", "zzz")    = "zzz"
5273
     * StringUtils.replaceFirst("", ".*", "zzz")  = "zzz"
5274
     * StringUtils.replaceFirst("", ".+", "zzz")  = ""
5275
     * StringUtils.replaceFirst("abc", "", "ZZ")  = "ZZabc"
5276
     * StringUtils.replaceFirst("&lt;__&gt;\n&lt;__&gt;", "&lt;.*&gt;", "z")      = "z\n&lt;__&gt;"
5277
     * StringUtils.replaceFirst("&lt;__&gt;\n&lt;__&gt;", "(?s)&lt;.*&gt;", "z")  = "z"
5278
     * StringUtils.replaceFirst("ABCabc123", "[a-z]", "_")          = "ABC_bc123"
5279
     * StringUtils.replaceFirst("ABCabc123abc", "[^A-Z0-9]+", "_")  = "ABC_123abc"
5280
     * StringUtils.replaceFirst("ABCabc123abc", "[^A-Z0-9]+", "")   = "ABC123abc"
5281
     * StringUtils.replaceFirst("Lorem ipsum  dolor   sit", "( +)([a-z]+)", "_$2")  = "Lorem_ipsum  dolor   sit"
5282
     * </pre>
5283
     *
5284
     * @param text  text to search and replace in, may be null
5285
     * @param regex  the regular expression to which this string is to be matched
5286
     * @param replacement  the string to be substituted for the first match
5287
     * @return  the text with the first replacement processed,
5288
     *              {@code null} if null String input
5289
     *
5290
     * @throws  java.util.regex.PatternSyntaxException
5291
     *              if the regular expression's syntax is invalid
5292
     *
5293
     * @see String#replaceFirst(String, String)
5294
     * @see java.util.regex.Pattern
5295
     * @see java.util.regex.Pattern#DOTALL
5296
     * @since 3.5
5297
     */
5298
    public static String replaceFirst(final String text, final String regex, final String replacement) {
5299 3 1. replaceFirst : negated conditional → KILLED
2. replaceFirst : negated conditional → KILLED
3. replaceFirst : negated conditional → KILLED
        if (text == null || regex == null|| replacement == null ) {
5300 1 1. replaceFirst : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceFirst to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return text;
5301
        }
5302 1 1. replaceFirst : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceFirst to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return text.replaceFirst(regex, replacement);
5303
    }
5304
5305
    /**
5306
     * <p>Replaces all occurrences of a String within another String.</p>
5307
     *
5308
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5309
     *
5310
     * <pre>
5311
     * StringUtils.replace(null, *, *)        = null
5312
     * StringUtils.replace("", *, *)          = ""
5313
     * StringUtils.replace("any", null, *)    = "any"
5314
     * StringUtils.replace("any", *, null)    = "any"
5315
     * StringUtils.replace("any", "", *)      = "any"
5316
     * StringUtils.replace("aba", "a", null)  = "aba"
5317
     * StringUtils.replace("aba", "a", "")    = "b"
5318
     * StringUtils.replace("aba", "a", "z")   = "zbz"
5319
     * </pre>
5320
     *
5321
     * @see #replace(String text, String searchString, String replacement, int max)
5322
     * @param text  text to search and replace in, may be null
5323
     * @param searchString  the String to search for, may be null
5324
     * @param replacement  the String to replace it with, may be null
5325
     * @return the text with any replacements processed,
5326
     *  {@code null} if null String input
5327
     */
5328
    public static String replace(final String text, final String searchString, final String replacement) {
5329 1 1. replace : mutated return of Object value for org/apache/commons/lang3/StringUtils::replace to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replace(text, searchString, replacement, -1);
5330
    }
5331
5332
    /**
5333
    * <p>Case insensitively replaces all occurrences of a String within another String.</p>
5334
    *
5335
    * <p>A {@code null} reference passed to this method is a no-op.</p>
5336
    *
5337
    * <pre>
5338
    * StringUtils.replaceIgnoreCase(null, *, *)        = null
5339
    * StringUtils.replaceIgnoreCase("", *, *)          = ""
5340
    * StringUtils.replaceIgnoreCase("any", null, *)    = "any"
5341
    * StringUtils.replaceIgnoreCase("any", *, null)    = "any"
5342
    * StringUtils.replaceIgnoreCase("any", "", *)      = "any"
5343
    * StringUtils.replaceIgnoreCase("aba", "a", null)  = "aba"
5344
    * StringUtils.replaceIgnoreCase("abA", "A", "")    = "b"
5345
    * StringUtils.replaceIgnoreCase("aba", "A", "z")   = "zbz"
5346
    * </pre>
5347
    *
5348
    * @see #replaceIgnoreCase(String text, String searchString, String replacement, int max)
5349
    * @param text  text to search and replace in, may be null
5350
    * @param searchString  the String to search for (case insensitive), may be null
5351
    * @param replacement  the String to replace it with, may be null
5352
    * @return the text with any replacements processed,
5353
    *  {@code null} if null String input
5354
    * @since 3.5
5355
    */
5356
   public static String replaceIgnoreCase(final String text, final String searchString, final String replacement) {
5357 1 1. replaceIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
       return replaceIgnoreCase(text, searchString, replacement, -1);
5358
   }
5359
5360
    /**
5361
     * <p>Replaces a String with another String inside a larger String,
5362
     * for the first {@code max} values of the search String.</p>
5363
     *
5364
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5365
     *
5366
     * <pre>
5367
     * StringUtils.replace(null, *, *, *)         = null
5368
     * StringUtils.replace("", *, *, *)           = ""
5369
     * StringUtils.replace("any", null, *, *)     = "any"
5370
     * StringUtils.replace("any", *, null, *)     = "any"
5371
     * StringUtils.replace("any", "", *, *)       = "any"
5372
     * StringUtils.replace("any", *, *, 0)        = "any"
5373
     * StringUtils.replace("abaa", "a", null, -1) = "abaa"
5374
     * StringUtils.replace("abaa", "a", "", -1)   = "b"
5375
     * StringUtils.replace("abaa", "a", "z", 0)   = "abaa"
5376
     * StringUtils.replace("abaa", "a", "z", 1)   = "zbaa"
5377
     * StringUtils.replace("abaa", "a", "z", 2)   = "zbza"
5378
     * StringUtils.replace("abaa", "a", "z", -1)  = "zbzz"
5379
     * </pre>
5380
     *
5381
     * @param text  text to search and replace in, may be null
5382
     * @param searchString  the String to search for, may be null
5383
     * @param replacement  the String to replace it with, may be null
5384
     * @param max  maximum number of values to replace, or {@code -1} if no maximum
5385
     * @return the text with any replacements processed,
5386
     *  {@code null} if null String input
5387
     */
5388
    public static String replace(final String text, final String searchString, final String replacement, final int max) {
5389 1 1. replace : mutated return of Object value for org/apache/commons/lang3/StringUtils::replace to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replace(text, searchString, replacement, max, false);
5390
    }
5391
5392
    /**
5393
     * <p>Replaces a String with another String inside a larger String,
5394
     * for the first {@code max} values of the search String, 
5395
     * case sensitively/insensisitively based on {@code ignoreCase} value.</p>
5396
     *
5397
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5398
     *
5399
     * <pre>
5400
     * StringUtils.replace(null, *, *, *, false)         = null
5401
     * StringUtils.replace("", *, *, *, false)           = ""
5402
     * StringUtils.replace("any", null, *, *, false)     = "any"
5403
     * StringUtils.replace("any", *, null, *, false)     = "any"
5404
     * StringUtils.replace("any", "", *, *, false)       = "any"
5405
     * StringUtils.replace("any", *, *, 0, false)        = "any"
5406
     * StringUtils.replace("abaa", "a", null, -1, false) = "abaa"
5407
     * StringUtils.replace("abaa", "a", "", -1, false)   = "b"
5408
     * StringUtils.replace("abaa", "a", "z", 0, false)   = "abaa"
5409
     * StringUtils.replace("abaa", "A", "z", 1, false)   = "abaa"
5410
     * StringUtils.replace("abaa", "A", "z", 1, true)   = "zbaa"
5411
     * StringUtils.replace("abAa", "a", "z", 2, true)   = "zbza"
5412
     * StringUtils.replace("abAa", "a", "z", -1, true)  = "zbzz"
5413
     * </pre>
5414
     *
5415
     * @param text  text to search and replace in, may be null
5416
     * @param searchString  the String to search for (case insensitive), may be null
5417
     * @param replacement  the String to replace it with, may be null
5418
     * @param max  maximum number of values to replace, or {@code -1} if no maximum
5419
     * @param ignoreCase if true replace is case insensitive, otherwise case sensitive
5420
     * @return the text with any replacements processed,
5421
     *  {@code null} if null String input
5422
     */
5423
     private static String replace(final String text, String searchString, final String replacement, int max, final boolean ignoreCase) {
5424 4 1. replace : negated conditional → KILLED
2. replace : negated conditional → KILLED
3. replace : negated conditional → KILLED
4. replace : negated conditional → KILLED
         if (isEmpty(text) || isEmpty(searchString) || replacement == null || max == 0) {
5425 1 1. replace : mutated return of Object value for org/apache/commons/lang3/StringUtils::replace to ( if (x != null) null else throw new RuntimeException ) → KILLED
             return text;
5426
         }
5427
         String searchText = text;
5428 1 1. replace : negated conditional → KILLED
         if (ignoreCase) {
5429
             searchText = text.toLowerCase();
5430
             searchString = searchString.toLowerCase();
5431
         }
5432
         int start = 0;
5433
         int end = searchText.indexOf(searchString, start);
5434 1 1. replace : negated conditional → KILLED
         if (end == INDEX_NOT_FOUND) {
5435 1 1. replace : mutated return of Object value for org/apache/commons/lang3/StringUtils::replace to ( if (x != null) null else throw new RuntimeException ) → KILLED
             return text;
5436
         }
5437
         final int replLength = searchString.length();
5438 1 1. replace : Replaced integer subtraction with addition → SURVIVED
         int increase = replacement.length() - replLength;
5439 2 1. replace : changed conditional boundary → SURVIVED
2. replace : negated conditional → KILLED
         increase = increase < 0 ? 0 : increase;
5440 5 1. replace : changed conditional boundary → SURVIVED
2. replace : changed conditional boundary → SURVIVED
3. replace : Replaced integer multiplication with division → SURVIVED
4. replace : negated conditional → SURVIVED
5. replace : negated conditional → SURVIVED
         increase *= max < 0 ? 16 : max > 64 ? 64 : max;
5441 1 1. replace : Replaced integer addition with subtraction → KILLED
         final StringBuilder buf = new StringBuilder(text.length() + increase);
5442 1 1. replace : negated conditional → KILLED
         while (end != INDEX_NOT_FOUND) {
5443
             buf.append(text.substring(start, end)).append(replacement);
5444 1 1. replace : Replaced integer addition with subtraction → KILLED
             start = end + replLength;
5445 2 1. replace : Changed increment from -1 to 1 → KILLED
2. replace : negated conditional → KILLED
             if (--max == 0) {
5446
                 break;
5447
             }
5448
             end = searchText.indexOf(searchString, start);
5449
         }
5450
         buf.append(text.substring(start));
5451 1 1. replace : mutated return of Object value for org/apache/commons/lang3/StringUtils::replace to ( if (x != null) null else throw new RuntimeException ) → KILLED
         return buf.toString();
5452
     }
5453
5454
    /**
5455
     * <p>Case insensitively replaces a String with another String inside a larger String,
5456
     * for the first {@code max} values of the search String.</p>
5457
     *
5458
     * <p>A {@code null} reference passed to this method is a no-op.</p>
5459
     *
5460
     * <pre>
5461
     * StringUtils.replaceIgnoreCase(null, *, *, *)         = null
5462
     * StringUtils.replaceIgnoreCase("", *, *, *)           = ""
5463
     * StringUtils.replaceIgnoreCase("any", null, *, *)     = "any"
5464
     * StringUtils.replaceIgnoreCase("any", *, null, *)     = "any"
5465
     * StringUtils.replaceIgnoreCase("any", "", *, *)       = "any"
5466
     * StringUtils.replaceIgnoreCase("any", *, *, 0)        = "any"
5467
     * StringUtils.replaceIgnoreCase("abaa", "a", null, -1) = "abaa"
5468
     * StringUtils.replaceIgnoreCase("abaa", "a", "", -1)   = "b"
5469
     * StringUtils.replaceIgnoreCase("abaa", "a", "z", 0)   = "abaa"
5470
     * StringUtils.replaceIgnoreCase("abaa", "A", "z", 1)   = "zbaa"
5471
     * StringUtils.replaceIgnoreCase("abAa", "a", "z", 2)   = "zbza"
5472
     * StringUtils.replaceIgnoreCase("abAa", "a", "z", -1)  = "zbzz"
5473
     * </pre>
5474
     *
5475
     * @param text  text to search and replace in, may be null
5476
     * @param searchString  the String to search for (case insensitive), may be null
5477
     * @param replacement  the String to replace it with, may be null
5478
     * @param max  maximum number of values to replace, or {@code -1} if no maximum
5479
     * @return the text with any replacements processed,
5480
     *  {@code null} if null String input
5481
     * @since 3.5
5482
     */
5483
    public static String replaceIgnoreCase(final String text, final String searchString, final String replacement, final int max) {
5484 1 1. replaceIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replace(text, searchString, replacement, max, true);
5485
    }
5486
5487
    /**
5488
     * <p>
5489
     * Replaces all occurrences of Strings within another String.
5490
     * </p>
5491
     *
5492
     * <p>
5493
     * A {@code null} reference passed to this method is a no-op, or if
5494
     * any "search string" or "string to replace" is null, that replace will be
5495
     * ignored. This will not repeat. For repeating replaces, call the
5496
     * overloaded method.
5497
     * </p>
5498
     *
5499
     * <pre>
5500
     *  StringUtils.replaceEach(null, *, *)        = null
5501
     *  StringUtils.replaceEach("", *, *)          = ""
5502
     *  StringUtils.replaceEach("aba", null, null) = "aba"
5503
     *  StringUtils.replaceEach("aba", new String[0], null) = "aba"
5504
     *  StringUtils.replaceEach("aba", null, new String[0]) = "aba"
5505
     *  StringUtils.replaceEach("aba", new String[]{"a"}, null)  = "aba"
5506
     *  StringUtils.replaceEach("aba", new String[]{"a"}, new String[]{""})  = "b"
5507
     *  StringUtils.replaceEach("aba", new String[]{null}, new String[]{"a"})  = "aba"
5508
     *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"w", "t"})  = "wcte"
5509
     *  (example of how it does not repeat)
5510
     *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"})  = "dcte"
5511
     * </pre>
5512
     *
5513
     * @param text
5514
     *            text to search and replace in, no-op if null
5515
     * @param searchList
5516
     *            the Strings to search for, no-op if null
5517
     * @param replacementList
5518
     *            the Strings to replace them with, no-op if null
5519
     * @return the text with any replacements processed, {@code null} if
5520
     *         null String input
5521
     * @throws IllegalArgumentException
5522
     *             if the lengths of the arrays are not the same (null is ok,
5523
     *             and/or size 0)
5524
     * @since 2.4
5525
     */
5526
    public static String replaceEach(final String text, final String[] searchList, final String[] replacementList) {
5527 1 1. replaceEach : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEach to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replaceEach(text, searchList, replacementList, false, 0);
5528
    }
5529
5530
    /**
5531
     * <p>
5532
     * Replaces all occurrences of Strings within another String.
5533
     * </p>
5534
     *
5535
     * <p>
5536
     * A {@code null} reference passed to this method is a no-op, or if
5537
     * any "search string" or "string to replace" is null, that replace will be
5538
     * ignored.
5539
     * </p>
5540
     *
5541
     * <pre>
5542
     *  StringUtils.replaceEachRepeatedly(null, *, *) = null
5543
     *  StringUtils.replaceEachRepeatedly("", *, *) = ""
5544
     *  StringUtils.replaceEachRepeatedly("aba", null, null) = "aba"
5545
     *  StringUtils.replaceEachRepeatedly("aba", new String[0], null) = "aba"
5546
     *  StringUtils.replaceEachRepeatedly("aba", null, new String[0]) = "aba"
5547
     *  StringUtils.replaceEachRepeatedly("aba", new String[]{"a"}, null) = "aba"
5548
     *  StringUtils.replaceEachRepeatedly("aba", new String[]{"a"}, new String[]{""}) = "b"
5549
     *  StringUtils.replaceEachRepeatedly("aba", new String[]{null}, new String[]{"a"}) = "aba"
5550
     *  StringUtils.replaceEachRepeatedly("abcde", new String[]{"ab", "d"}, new String[]{"w", "t"}) = "wcte"
5551
     *  (example of how it repeats)
5552
     *  StringUtils.replaceEachRepeatedly("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"}) = "tcte"
5553
     *  StringUtils.replaceEachRepeatedly("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"}) = IllegalStateException
5554
     * </pre>
5555
     *
5556
     * @param text
5557
     *            text to search and replace in, no-op if null
5558
     * @param searchList
5559
     *            the Strings to search for, no-op if null
5560
     * @param replacementList
5561
     *            the Strings to replace them with, no-op if null
5562
     * @return the text with any replacements processed, {@code null} if
5563
     *         null String input
5564
     * @throws IllegalStateException
5565
     *             if the search is repeating and there is an endless loop due
5566
     *             to outputs of one being inputs to another
5567
     * @throws IllegalArgumentException
5568
     *             if the lengths of the arrays are not the same (null is ok,
5569
     *             and/or size 0)
5570
     * @since 2.4
5571
     */
5572
    public static String replaceEachRepeatedly(final String text, final String[] searchList, final String[] replacementList) {
5573
        // timeToLive should be 0 if not used or nothing to replace, else it's
5574
        // the length of the replace array
5575 1 1. replaceEachRepeatedly : negated conditional → KILLED
        final int timeToLive = searchList == null ? 0 : searchList.length;
5576 1 1. replaceEachRepeatedly : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEachRepeatedly to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replaceEach(text, searchList, replacementList, true, timeToLive);
5577
    }
5578
5579
    /**
5580
     * <p>
5581
     * Replace all occurrences of Strings within another String.
5582
     * This is a private recursive helper method for {@link #replaceEachRepeatedly(String, String[], String[])} and
5583
     * {@link #replaceEach(String, String[], String[])}
5584
     * </p>
5585
     *
5586
     * <p>
5587
     * A {@code null} reference passed to this method is a no-op, or if
5588
     * any "search string" or "string to replace" is null, that replace will be
5589
     * ignored.
5590
     * </p>
5591
     *
5592
     * <pre>
5593
     *  StringUtils.replaceEach(null, *, *, *, *) = null
5594
     *  StringUtils.replaceEach("", *, *, *, *) = ""
5595
     *  StringUtils.replaceEach("aba", null, null, *, *) = "aba"
5596
     *  StringUtils.replaceEach("aba", new String[0], null, *, *) = "aba"
5597
     *  StringUtils.replaceEach("aba", null, new String[0], *, *) = "aba"
5598
     *  StringUtils.replaceEach("aba", new String[]{"a"}, null, *, *) = "aba"
5599
     *  StringUtils.replaceEach("aba", new String[]{"a"}, new String[]{""}, *, >=0) = "b"
5600
     *  StringUtils.replaceEach("aba", new String[]{null}, new String[]{"a"}, *, >=0) = "aba"
5601
     *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"w", "t"}, *, >=0) = "wcte"
5602
     *  (example of how it repeats)
5603
     *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"}, false, >=0) = "dcte"
5604
     *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "t"}, true, >=2) = "tcte"
5605
     *  StringUtils.replaceEach("abcde", new String[]{"ab", "d"}, new String[]{"d", "ab"}, *, *) = IllegalStateException
5606
     * </pre>
5607
     *
5608
     * @param text
5609
     *            text to search and replace in, no-op if null
5610
     * @param searchList
5611
     *            the Strings to search for, no-op if null
5612
     * @param replacementList
5613
     *            the Strings to replace them with, no-op if null
5614
     * @param repeat if true, then replace repeatedly
5615
     *       until there are no more possible replacements or timeToLive < 0
5616
     * @param timeToLive
5617
     *            if less than 0 then there is a circular reference and endless
5618
     *            loop
5619
     * @return the text with any replacements processed, {@code null} if
5620
     *         null String input
5621
     * @throws IllegalStateException
5622
     *             if the search is repeating and there is an endless loop due
5623
     *             to outputs of one being inputs to another
5624
     * @throws IllegalArgumentException
5625
     *             if the lengths of the arrays are not the same (null is ok,
5626
     *             and/or size 0)
5627
     * @since 2.4
5628
     */
5629
    private static String replaceEach(
5630
            final String text, final String[] searchList, final String[] replacementList, final boolean repeat, final int timeToLive) {
5631
5632
        // mchyzer Performance note: This creates very few new objects (one major goal)
5633
        // let me know if there are performance requests, we can create a harness to measure
5634
5635 6 1. replaceEach : negated conditional → KILLED
2. replaceEach : negated conditional → KILLED
3. replaceEach : negated conditional → KILLED
4. replaceEach : negated conditional → KILLED
5. replaceEach : negated conditional → KILLED
6. replaceEach : negated conditional → KILLED
        if (text == null || text.isEmpty() || searchList == null ||
5636
                searchList.length == 0 || replacementList == null || replacementList.length == 0) {
5637 1 1. replaceEach : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEach to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return text;
5638
        }
5639
5640
        // if recursing, this shouldn't be less than 0
5641 2 1. replaceEach : changed conditional boundary → KILLED
2. replaceEach : negated conditional → KILLED
        if (timeToLive < 0) {
5642
            throw new IllegalStateException("Aborting to protect against StackOverflowError - " +
5643
                                            "output of one loop is the input of another");
5644
        }
5645
5646
        final int searchLength = searchList.length;
5647
        final int replacementLength = replacementList.length;
5648
5649
        // make sure lengths are ok, these need to be equal
5650 1 1. replaceEach : negated conditional → KILLED
        if (searchLength != replacementLength) {
5651
            throw new IllegalArgumentException("Search and Replace array lengths don't match: "
5652
                + searchLength
5653
                + " vs "
5654
                + replacementLength);
5655
        }
5656
5657
        // keep track of which still have matches
5658
        final boolean[] noMoreMatchesForReplIndex = new boolean[searchLength];
5659
5660
        // index on index that the match was found
5661
        int textIndex = -1;
5662
        int replaceIndex = -1;
5663
        int tempIndex = -1;
5664
5665
        // index of replace array that will replace the search string found
5666
        // NOTE: logic duplicated below START
5667 3 1. replaceEach : changed conditional boundary → KILLED
2. replaceEach : Changed increment from 1 to -1 → KILLED
3. replaceEach : negated conditional → KILLED
        for (int i = 0; i < searchLength; i++) {
5668 2 1. replaceEach : negated conditional → KILLED
2. replaceEach : negated conditional → KILLED
            if (noMoreMatchesForReplIndex[i] || searchList[i] == null ||
5669 2 1. replaceEach : negated conditional → KILLED
2. replaceEach : negated conditional → KILLED
                    searchList[i].isEmpty() || replacementList[i] == null) {
5670
                continue;
5671
            }
5672
            tempIndex = text.indexOf(searchList[i]);
5673
5674
            // see if we need to keep searching for this
5675 1 1. replaceEach : negated conditional → KILLED
            if (tempIndex == -1) {
5676
                noMoreMatchesForReplIndex[i] = true;
5677
            } else {
5678 3 1. replaceEach : changed conditional boundary → SURVIVED
2. replaceEach : negated conditional → KILLED
3. replaceEach : negated conditional → KILLED
                if (textIndex == -1 || tempIndex < textIndex) {
5679
                    textIndex = tempIndex;
5680
                    replaceIndex = i;
5681
                }
5682
            }
5683
        }
5684
        // NOTE: logic mostly below END
5685
5686
        // no search strings found, we are done
5687 1 1. replaceEach : negated conditional → KILLED
        if (textIndex == -1) {
5688 1 1. replaceEach : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEach to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return text;
5689
        }
5690
5691
        int start = 0;
5692
5693
        // get a good guess on the size of the result buffer so it doesn't have to double if it goes over a bit
5694
        int increase = 0;
5695
5696
        // count the replacement text elements that are larger than their corresponding text being replaced
5697 3 1. replaceEach : negated conditional → SURVIVED
2. replaceEach : changed conditional boundary → KILLED
3. replaceEach : Changed increment from 1 to -1 → KILLED
        for (int i = 0; i < searchList.length; i++) {
5698 2 1. replaceEach : negated conditional → SURVIVED
2. replaceEach : negated conditional → KILLED
            if (searchList[i] == null || replacementList[i] == null) {
5699
                continue;
5700
            }
5701 1 1. replaceEach : Replaced integer subtraction with addition → SURVIVED
            final int greater = replacementList[i].length() - searchList[i].length();
5702 2 1. replaceEach : changed conditional boundary → SURVIVED
2. replaceEach : negated conditional → SURVIVED
            if (greater > 0) {
5703 2 1. replaceEach : Replaced integer multiplication with division → SURVIVED
2. replaceEach : Replaced integer addition with subtraction → SURVIVED
                increase += 3 * greater; // assume 3 matches
5704
            }
5705
        }
5706
        // have upper-bound at 20% increase, then let Java take over
5707 1 1. replaceEach : Replaced integer division with multiplication → SURVIVED
        increase = Math.min(increase, text.length() / 5);
5708
5709 1 1. replaceEach : Replaced integer addition with subtraction → SURVIVED
        final StringBuilder buf = new StringBuilder(text.length() + increase);
5710
5711 1 1. replaceEach : negated conditional → KILLED
        while (textIndex != -1) {
5712
5713 3 1. replaceEach : changed conditional boundary → KILLED
2. replaceEach : Changed increment from 1 to -1 → KILLED
3. replaceEach : negated conditional → KILLED
            for (int i = start; i < textIndex; i++) {
5714
                buf.append(text.charAt(i));
5715
            }
5716
            buf.append(replacementList[replaceIndex]);
5717
5718 1 1. replaceEach : Replaced integer addition with subtraction → KILLED
            start = textIndex + searchList[replaceIndex].length();
5719
5720
            textIndex = -1;
5721
            replaceIndex = -1;
5722
            tempIndex = -1;
5723
            // find the next earliest match
5724
            // NOTE: logic mostly duplicated above START
5725 3 1. replaceEach : changed conditional boundary → KILLED
2. replaceEach : Changed increment from 1 to -1 → KILLED
3. replaceEach : negated conditional → KILLED
            for (int i = 0; i < searchLength; i++) {
5726 2 1. replaceEach : negated conditional → KILLED
2. replaceEach : negated conditional → KILLED
                if (noMoreMatchesForReplIndex[i] || searchList[i] == null ||
5727 2 1. replaceEach : negated conditional → KILLED
2. replaceEach : negated conditional → KILLED
                        searchList[i].isEmpty() || replacementList[i] == null) {
5728
                    continue;
5729
                }
5730
                tempIndex = text.indexOf(searchList[i], start);
5731
5732
                // see if we need to keep searching for this
5733 1 1. replaceEach : negated conditional → KILLED
                if (tempIndex == -1) {
5734
                    noMoreMatchesForReplIndex[i] = true;
5735
                } else {
5736 3 1. replaceEach : changed conditional boundary → SURVIVED
2. replaceEach : negated conditional → KILLED
3. replaceEach : negated conditional → KILLED
                    if (textIndex == -1 || tempIndex < textIndex) {
5737
                        textIndex = tempIndex;
5738
                        replaceIndex = i;
5739
                    }
5740
                }
5741
            }
5742
            // NOTE: logic duplicated above END
5743
5744
        }
5745
        final int textLength = text.length();
5746 3 1. replaceEach : changed conditional boundary → KILLED
2. replaceEach : Changed increment from 1 to -1 → KILLED
3. replaceEach : negated conditional → KILLED
        for (int i = start; i < textLength; i++) {
5747
            buf.append(text.charAt(i));
5748
        }
5749
        final String result = buf.toString();
5750 1 1. replaceEach : negated conditional → KILLED
        if (!repeat) {
5751 1 1. replaceEach : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEach to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return result;
5752
        }
5753
5754 2 1. replaceEach : Replaced integer subtraction with addition → KILLED
2. replaceEach : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEach to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return replaceEach(result, searchList, replacementList, repeat, timeToLive - 1);
5755
    }
5756
5757
    // Replace, character based
5758
    //-----------------------------------------------------------------------
5759
    /**
5760
     * <p>Replaces all occurrences of a character in a String with another.
5761
     * This is a null-safe version of {@link String#replace(char, char)}.</p>
5762
     *
5763
     * <p>A {@code null} string input returns {@code null}.
5764
     * An empty ("") string input returns an empty string.</p>
5765
     *
5766
     * <pre>
5767
     * StringUtils.replaceChars(null, *, *)        = null
5768
     * StringUtils.replaceChars("", *, *)          = ""
5769
     * StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
5770
     * StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
5771
     * </pre>
5772
     *
5773
     * @param str  String to replace characters in, may be null
5774
     * @param searchChar  the character to search for, may be null
5775
     * @param replaceChar  the character to replace, may be null
5776
     * @return modified String, {@code null} if null string input
5777
     * @since 2.0
5778
     */
5779
    public static String replaceChars(final String str, final char searchChar, final char replaceChar) {
5780 1 1. replaceChars : negated conditional → KILLED
        if (str == null) {
5781 1 1. replaceChars : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceChars to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
5782
        }
5783 1 1. replaceChars : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceChars to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.replace(searchChar, replaceChar);
5784
    }
5785
5786
    /**
5787
     * <p>Replaces multiple characters in a String in one go.
5788
     * This method can also be used to delete characters.</p>
5789
     *
5790
     * <p>For example:<br>
5791
     * <code>replaceChars(&quot;hello&quot;, &quot;ho&quot;, &quot;jy&quot;) = jelly</code>.</p>
5792
     *
5793
     * <p>A {@code null} string input returns {@code null}.
5794
     * An empty ("") string input returns an empty string.
5795
     * A null or empty set of search characters returns the input string.</p>
5796
     *
5797
     * <p>The length of the search characters should normally equal the length
5798
     * of the replace characters.
5799
     * If the search characters is longer, then the extra search characters
5800
     * are deleted.
5801
     * If the search characters is shorter, then the extra replace characters
5802
     * are ignored.</p>
5803
     *
5804
     * <pre>
5805
     * StringUtils.replaceChars(null, *, *)           = null
5806
     * StringUtils.replaceChars("", *, *)             = ""
5807
     * StringUtils.replaceChars("abc", null, *)       = "abc"
5808
     * StringUtils.replaceChars("abc", "", *)         = "abc"
5809
     * StringUtils.replaceChars("abc", "b", null)     = "ac"
5810
     * StringUtils.replaceChars("abc", "b", "")       = "ac"
5811
     * StringUtils.replaceChars("abcba", "bc", "yz")  = "ayzya"
5812
     * StringUtils.replaceChars("abcba", "bc", "y")   = "ayya"
5813
     * StringUtils.replaceChars("abcba", "bc", "yzx") = "ayzya"
5814
     * </pre>
5815
     *
5816
     * @param str  String to replace characters in, may be null
5817
     * @param searchChars  a set of characters to search for, may be null
5818
     * @param replaceChars  a set of characters to replace, may be null
5819
     * @return modified String, {@code null} if null string input
5820
     * @since 2.0
5821
     */
5822
    public static String replaceChars(final String str, final String searchChars, String replaceChars) {
5823 2 1. replaceChars : negated conditional → KILLED
2. replaceChars : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(searchChars)) {
5824 1 1. replaceChars : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceChars to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
5825
        }
5826 1 1. replaceChars : negated conditional → KILLED
        if (replaceChars == null) {
5827
            replaceChars = EMPTY;
5828
        }
5829
        boolean modified = false;
5830
        final int replaceCharsLength = replaceChars.length();
5831
        final int strLength = str.length();
5832
        final StringBuilder buf = new StringBuilder(strLength);
5833 3 1. replaceChars : changed conditional boundary → KILLED
2. replaceChars : Changed increment from 1 to -1 → KILLED
3. replaceChars : negated conditional → KILLED
        for (int i = 0; i < strLength; i++) {
5834
            final char ch = str.charAt(i);
5835
            final int index = searchChars.indexOf(ch);
5836 2 1. replaceChars : changed conditional boundary → KILLED
2. replaceChars : negated conditional → KILLED
            if (index >= 0) {
5837
                modified = true;
5838 2 1. replaceChars : changed conditional boundary → KILLED
2. replaceChars : negated conditional → KILLED
                if (index < replaceCharsLength) {
5839
                    buf.append(replaceChars.charAt(index));
5840
                }
5841
            } else {
5842
                buf.append(ch);
5843
            }
5844
        }
5845 1 1. replaceChars : negated conditional → KILLED
        if (modified) {
5846 1 1. replaceChars : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceChars to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return buf.toString();
5847
        }
5848 1 1. replaceChars : mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceChars to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str;
5849
    }
5850
5851
    // Overlay
5852
    //-----------------------------------------------------------------------
5853
    /**
5854
     * <p>Overlays part of a String with another String.</p>
5855
     *
5856
     * <p>A {@code null} string input returns {@code null}.
5857
     * A negative index is treated as zero.
5858
     * An index greater than the string length is treated as the string length.
5859
     * The start index is always the smaller of the two indices.</p>
5860
     *
5861
     * <pre>
5862
     * StringUtils.overlay(null, *, *, *)            = null
5863
     * StringUtils.overlay("", "abc", 0, 0)          = "abc"
5864
     * StringUtils.overlay("abcdef", null, 2, 4)     = "abef"
5865
     * StringUtils.overlay("abcdef", "", 2, 4)       = "abef"
5866
     * StringUtils.overlay("abcdef", "", 4, 2)       = "abef"
5867
     * StringUtils.overlay("abcdef", "zzzz", 2, 4)   = "abzzzzef"
5868
     * StringUtils.overlay("abcdef", "zzzz", 4, 2)   = "abzzzzef"
5869
     * StringUtils.overlay("abcdef", "zzzz", -1, 4)  = "zzzzef"
5870
     * StringUtils.overlay("abcdef", "zzzz", 2, 8)   = "abzzzz"
5871
     * StringUtils.overlay("abcdef", "zzzz", -2, -3) = "zzzzabcdef"
5872
     * StringUtils.overlay("abcdef", "zzzz", 8, 10)  = "abcdefzzzz"
5873
     * </pre>
5874
     *
5875
     * @param str  the String to do overlaying in, may be null
5876
     * @param overlay  the String to overlay, may be null
5877
     * @param start  the position to start overlaying at
5878
     * @param end  the position to stop overlaying before
5879
     * @return overlayed String, {@code null} if null String input
5880
     * @since 2.0
5881
     */
5882
    public static String overlay(final String str, String overlay, int start, int end) {
5883 1 1. overlay : negated conditional → KILLED
        if (str == null) {
5884 1 1. overlay : mutated return of Object value for org/apache/commons/lang3/StringUtils::overlay to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
5885
        }
5886 1 1. overlay : negated conditional → KILLED
        if (overlay == null) {
5887
            overlay = EMPTY;
5888
        }
5889
        final int len = str.length();
5890 2 1. overlay : changed conditional boundary → SURVIVED
2. overlay : negated conditional → KILLED
        if (start < 0) {
5891
            start = 0;
5892
        }
5893 2 1. overlay : changed conditional boundary → SURVIVED
2. overlay : negated conditional → KILLED
        if (start > len) {
5894
            start = len;
5895
        }
5896 2 1. overlay : changed conditional boundary → SURVIVED
2. overlay : negated conditional → KILLED
        if (end < 0) {
5897
            end = 0;
5898
        }
5899 2 1. overlay : changed conditional boundary → SURVIVED
2. overlay : negated conditional → KILLED
        if (end > len) {
5900
            end = len;
5901
        }
5902 2 1. overlay : changed conditional boundary → SURVIVED
2. overlay : negated conditional → KILLED
        if (start > end) {
5903
            final int temp = start;
5904
            start = end;
5905
            end = temp;
5906
        }
5907 5 1. overlay : Replaced integer subtraction with addition → SURVIVED
2. overlay : Replaced integer addition with subtraction → KILLED
3. overlay : Replaced integer addition with subtraction → KILLED
4. overlay : Replaced integer addition with subtraction → KILLED
5. overlay : mutated return of Object value for org/apache/commons/lang3/StringUtils::overlay to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new StringBuilder(len + start - end + overlay.length() + 1)
5908
            .append(str.substring(0, start))
5909
            .append(overlay)
5910
            .append(str.substring(end))
5911
            .toString();
5912
    }
5913
5914
    // Chomping
5915
    //-----------------------------------------------------------------------
5916
    /**
5917
     * <p>Removes one newline from end of a String if it's there,
5918
     * otherwise leave it alone.  A newline is &quot;{@code \n}&quot;,
5919
     * &quot;{@code \r}&quot;, or &quot;{@code \r\n}&quot;.</p>
5920
     *
5921
     * <p>NOTE: This method changed in 2.0.
5922
     * It now more closely matches Perl chomp.</p>
5923
     *
5924
     * <pre>
5925
     * StringUtils.chomp(null)          = null
5926
     * StringUtils.chomp("")            = ""
5927
     * StringUtils.chomp("abc \r")      = "abc "
5928
     * StringUtils.chomp("abc\n")       = "abc"
5929
     * StringUtils.chomp("abc\r\n")     = "abc"
5930
     * StringUtils.chomp("abc\r\n\r\n") = "abc\r\n"
5931
     * StringUtils.chomp("abc\n\r")     = "abc\n"
5932
     * StringUtils.chomp("abc\n\rabc")  = "abc\n\rabc"
5933
     * StringUtils.chomp("\r")          = ""
5934
     * StringUtils.chomp("\n")          = ""
5935
     * StringUtils.chomp("\r\n")        = ""
5936
     * </pre>
5937
     *
5938
     * @param str  the String to chomp a newline from, may be null
5939
     * @return String without newline, {@code null} if null String input
5940
     */
5941
    public static String chomp(final String str) {
5942 1 1. chomp : negated conditional → KILLED
        if (isEmpty(str)) {
5943 1 1. chomp : mutated return of Object value for org/apache/commons/lang3/StringUtils::chomp to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
5944
        }
5945
5946 1 1. chomp : negated conditional → KILLED
        if (str.length() == 1) {
5947
            final char ch = str.charAt(0);
5948 2 1. chomp : negated conditional → KILLED
2. chomp : negated conditional → KILLED
            if (ch == CharUtils.CR || ch == CharUtils.LF) {
5949 1 1. chomp : mutated return of Object value for org/apache/commons/lang3/StringUtils::chomp to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return EMPTY;
5950
            }
5951 1 1. chomp : mutated return of Object value for org/apache/commons/lang3/StringUtils::chomp to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
5952
        }
5953
5954 1 1. chomp : Replaced integer subtraction with addition → KILLED
        int lastIdx = str.length() - 1;
5955
        final char last = str.charAt(lastIdx);
5956
5957 1 1. chomp : negated conditional → KILLED
        if (last == CharUtils.LF) {
5958 2 1. chomp : Replaced integer subtraction with addition → KILLED
2. chomp : negated conditional → KILLED
            if (str.charAt(lastIdx - 1) == CharUtils.CR) {
5959 1 1. chomp : Changed increment from -1 to 1 → KILLED
                lastIdx--;
5960
            }
5961 1 1. chomp : negated conditional → KILLED
        } else if (last != CharUtils.CR) {
5962 1 1. chomp : Changed increment from 1 to -1 → KILLED
            lastIdx++;
5963
        }
5964 1 1. chomp : mutated return of Object value for org/apache/commons/lang3/StringUtils::chomp to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.substring(0, lastIdx);
5965
    }
5966
5967
    /**
5968
     * <p>Removes {@code separator} from the end of
5969
     * {@code str} if it's there, otherwise leave it alone.</p>
5970
     *
5971
     * <p>NOTE: This method changed in version 2.0.
5972
     * It now more closely matches Perl chomp.
5973
     * For the previous behavior, use {@link #substringBeforeLast(String, String)}.
5974
     * This method uses {@link String#endsWith(String)}.</p>
5975
     *
5976
     * <pre>
5977
     * StringUtils.chomp(null, *)         = null
5978
     * StringUtils.chomp("", *)           = ""
5979
     * StringUtils.chomp("foobar", "bar") = "foo"
5980
     * StringUtils.chomp("foobar", "baz") = "foobar"
5981
     * StringUtils.chomp("foo", "foo")    = ""
5982
     * StringUtils.chomp("foo ", "foo")   = "foo "
5983
     * StringUtils.chomp(" foo", "foo")   = " "
5984
     * StringUtils.chomp("foo", "foooo")  = "foo"
5985
     * StringUtils.chomp("foo", "")       = "foo"
5986
     * StringUtils.chomp("foo", null)     = "foo"
5987
     * </pre>
5988
     *
5989
     * @param str  the String to chomp from, may be null
5990
     * @param separator  separator String, may be null
5991
     * @return String without trailing separator, {@code null} if null String input
5992
     * @deprecated This feature will be removed in Lang 4.0, use {@link StringUtils#removeEnd(String, String)} instead
5993
     */
5994
    @Deprecated
5995
    public static String chomp(final String str, final String separator) {
5996 1 1. chomp : mutated return of Object value for org/apache/commons/lang3/StringUtils::chomp to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return removeEnd(str,separator);
5997
    }
5998
5999
    // Chopping
6000
    //-----------------------------------------------------------------------
6001
    /**
6002
     * <p>Remove the last character from a String.</p>
6003
     *
6004
     * <p>If the String ends in {@code \r\n}, then remove both
6005
     * of them.</p>
6006
     *
6007
     * <pre>
6008
     * StringUtils.chop(null)          = null
6009
     * StringUtils.chop("")            = ""
6010
     * StringUtils.chop("abc \r")      = "abc "
6011
     * StringUtils.chop("abc\n")       = "abc"
6012
     * StringUtils.chop("abc\r\n")     = "abc"
6013
     * StringUtils.chop("abc")         = "ab"
6014
     * StringUtils.chop("abc\nabc")    = "abc\nab"
6015
     * StringUtils.chop("a")           = ""
6016
     * StringUtils.chop("\r")          = ""
6017
     * StringUtils.chop("\n")          = ""
6018
     * StringUtils.chop("\r\n")        = ""
6019
     * </pre>
6020
     *
6021
     * @param str  the String to chop last character from, may be null
6022
     * @return String without last character, {@code null} if null String input
6023
     */
6024
    public static String chop(final String str) {
6025 1 1. chop : negated conditional → KILLED
        if (str == null) {
6026 1 1. chop : mutated return of Object value for org/apache/commons/lang3/StringUtils::chop to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
6027
        }
6028
        final int strLen = str.length();
6029 2 1. chop : changed conditional boundary → SURVIVED
2. chop : negated conditional → KILLED
        if (strLen < 2) {
6030 1 1. chop : mutated return of Object value for org/apache/commons/lang3/StringUtils::chop to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
6031
        }
6032 1 1. chop : Replaced integer subtraction with addition → KILLED
        final int lastIdx = strLen - 1;
6033
        final String ret = str.substring(0, lastIdx);
6034
        final char last = str.charAt(lastIdx);
6035 3 1. chop : Replaced integer subtraction with addition → KILLED
2. chop : negated conditional → KILLED
3. chop : negated conditional → KILLED
        if (last == CharUtils.LF && ret.charAt(lastIdx - 1) == CharUtils.CR) {
6036 2 1. chop : Replaced integer subtraction with addition → KILLED
2. chop : mutated return of Object value for org/apache/commons/lang3/StringUtils::chop to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return ret.substring(0, lastIdx - 1);
6037
        }
6038 1 1. chop : mutated return of Object value for org/apache/commons/lang3/StringUtils::chop to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return ret;
6039
    }
6040
6041
    // Conversion
6042
    //-----------------------------------------------------------------------
6043
6044
    // Padding
6045
    //-----------------------------------------------------------------------
6046
    /**
6047
     * <p>Repeat a String {@code repeat} times to form a
6048
     * new String.</p>
6049
     *
6050
     * <pre>
6051
     * StringUtils.repeat(null, 2) = null
6052
     * StringUtils.repeat("", 0)   = ""
6053
     * StringUtils.repeat("", 2)   = ""
6054
     * StringUtils.repeat("a", 3)  = "aaa"
6055
     * StringUtils.repeat("ab", 2) = "abab"
6056
     * StringUtils.repeat("a", -2) = ""
6057
     * </pre>
6058
     *
6059
     * @param str  the String to repeat, may be null
6060
     * @param repeat  number of times to repeat str, negative treated as zero
6061
     * @return a new String consisting of the original String repeated,
6062
     *  {@code null} if null String input
6063
     */
6064
    public static String repeat(final String str, final int repeat) {
6065
        // Performance tuned for 2.0 (JDK1.4)
6066
6067 1 1. repeat : negated conditional → KILLED
        if (str == null) {
6068 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
6069
        }
6070 2 1. repeat : changed conditional boundary → SURVIVED
2. repeat : negated conditional → KILLED
        if (repeat <= 0) {
6071 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
6072
        }
6073
        final int inputLength = str.length();
6074 2 1. repeat : negated conditional → KILLED
2. repeat : negated conditional → KILLED
        if (repeat == 1 || inputLength == 0) {
6075 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
6076
        }
6077 3 1. repeat : changed conditional boundary → SURVIVED
2. repeat : negated conditional → SURVIVED
3. repeat : negated conditional → KILLED
        if (inputLength == 1 && repeat <= PAD_LIMIT) {
6078 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return repeat(str.charAt(0), repeat);
6079
        }
6080
6081 1 1. repeat : Replaced integer multiplication with division → KILLED
        final int outputLength = inputLength * repeat;
6082
        switch (inputLength) {
6083
            case 1 :
6084 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return repeat(str.charAt(0), repeat);
6085
            case 2 :
6086
                final char ch0 = str.charAt(0);
6087
                final char ch1 = str.charAt(1);
6088
                final char[] output2 = new char[outputLength];
6089 6 1. repeat : Changed increment from -1 to 1 → TIMED_OUT
2. repeat : Changed increment from -1 to 1 → TIMED_OUT
3. repeat : changed conditional boundary → KILLED
4. repeat : Replaced integer multiplication with division → KILLED
5. repeat : Replaced integer subtraction with addition → KILLED
6. repeat : negated conditional → KILLED
                for (int i = repeat * 2 - 2; i >= 0; i--, i--) {
6090
                    output2[i] = ch0;
6091 1 1. repeat : Replaced integer addition with subtraction → KILLED
                    output2[i + 1] = ch1;
6092
                }
6093 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return new String(output2);
6094
            default :
6095
                final StringBuilder buf = new StringBuilder(outputLength);
6096 3 1. repeat : changed conditional boundary → KILLED
2. repeat : Changed increment from 1 to -1 → KILLED
3. repeat : negated conditional → KILLED
                for (int i = 0; i < repeat; i++) {
6097
                    buf.append(str);
6098
                }
6099 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return buf.toString();
6100
        }
6101
    }
6102
6103
    /**
6104
     * <p>Repeat a String {@code repeat} times to form a
6105
     * new String, with a String separator injected each time. </p>
6106
     *
6107
     * <pre>
6108
     * StringUtils.repeat(null, null, 2) = null
6109
     * StringUtils.repeat(null, "x", 2)  = null
6110
     * StringUtils.repeat("", null, 0)   = ""
6111
     * StringUtils.repeat("", "", 2)     = ""
6112
     * StringUtils.repeat("", "x", 3)    = "xxx"
6113
     * StringUtils.repeat("?", ", ", 3)  = "?, ?, ?"
6114
     * </pre>
6115
     *
6116
     * @param str        the String to repeat, may be null
6117
     * @param separator  the String to inject, may be null
6118
     * @param repeat     number of times to repeat str, negative treated as zero
6119
     * @return a new String consisting of the original String repeated,
6120
     *  {@code null} if null String input
6121
     * @since 2.5
6122
     */
6123
    public static String repeat(final String str, final String separator, final int repeat) {
6124 2 1. repeat : negated conditional → KILLED
2. repeat : negated conditional → KILLED
        if(str == null || separator == null) {
6125 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return repeat(str, repeat);
6126
        }
6127
        // given that repeat(String, int) is quite optimized, better to rely on it than try and splice this into it
6128
        final String result = repeat(str + separator, repeat);
6129 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return removeEnd(result, separator);
6130
    }
6131
6132
    /**
6133
     * <p>Returns padding using the specified delimiter repeated
6134
     * to a given length.</p>
6135
     *
6136
     * <pre>
6137
     * StringUtils.repeat('e', 0)  = ""
6138
     * StringUtils.repeat('e', 3)  = "eee"
6139
     * StringUtils.repeat('e', -2) = ""
6140
     * </pre>
6141
     *
6142
     * <p>Note: this method doesn't not support padding with
6143
     * <a href="http://www.unicode.org/glossary/#supplementary_character">Unicode Supplementary Characters</a>
6144
     * as they require a pair of {@code char}s to be represented.
6145
     * If you are needing to support full I18N of your applications
6146
     * consider using {@link #repeat(String, int)} instead.
6147
     * </p>
6148
     *
6149
     * @param ch  character to repeat
6150
     * @param repeat  number of times to repeat char, negative treated as zero
6151
     * @return String with repeated character
6152
     * @see #repeat(String, int)
6153
     */
6154
    public static String repeat(final char ch, final int repeat) {
6155 2 1. repeat : changed conditional boundary → SURVIVED
2. repeat : negated conditional → KILLED
        if (repeat <= 0) {
6156 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
6157
        }
6158
        final char[] buf = new char[repeat];
6159 4 1. repeat : changed conditional boundary → KILLED
2. repeat : Changed increment from -1 to 1 → KILLED
3. repeat : Replaced integer subtraction with addition → KILLED
4. repeat : negated conditional → KILLED
        for (int i = repeat - 1; i >= 0; i--) {
6160
            buf[i] = ch;
6161
        }
6162 1 1. repeat : mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new String(buf);
6163
    }
6164
6165
    /**
6166
     * <p>Right pad a String with spaces (' ').</p>
6167
     *
6168
     * <p>The String is padded to the size of {@code size}.</p>
6169
     *
6170
     * <pre>
6171
     * StringUtils.rightPad(null, *)   = null
6172
     * StringUtils.rightPad("", 3)     = "   "
6173
     * StringUtils.rightPad("bat", 3)  = "bat"
6174
     * StringUtils.rightPad("bat", 5)  = "bat  "
6175
     * StringUtils.rightPad("bat", 1)  = "bat"
6176
     * StringUtils.rightPad("bat", -1) = "bat"
6177
     * </pre>
6178
     *
6179
     * @param str  the String to pad out, may be null
6180
     * @param size  the size to pad to
6181
     * @return right padded String or original String if no padding is necessary,
6182
     *  {@code null} if null String input
6183
     */
6184
    public static String rightPad(final String str, final int size) {
6185 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return rightPad(str, size, ' ');
6186
    }
6187
6188
    /**
6189
     * <p>Right pad a String with a specified character.</p>
6190
     *
6191
     * <p>The String is padded to the size of {@code size}.</p>
6192
     *
6193
     * <pre>
6194
     * StringUtils.rightPad(null, *, *)     = null
6195
     * StringUtils.rightPad("", 3, 'z')     = "zzz"
6196
     * StringUtils.rightPad("bat", 3, 'z')  = "bat"
6197
     * StringUtils.rightPad("bat", 5, 'z')  = "batzz"
6198
     * StringUtils.rightPad("bat", 1, 'z')  = "bat"
6199
     * StringUtils.rightPad("bat", -1, 'z') = "bat"
6200
     * </pre>
6201
     *
6202
     * @param str  the String to pad out, may be null
6203
     * @param size  the size to pad to
6204
     * @param padChar  the character to pad with
6205
     * @return right padded String or original String if no padding is necessary,
6206
     *  {@code null} if null String input
6207
     * @since 2.0
6208
     */
6209
    public static String rightPad(final String str, final int size, final char padChar) {
6210 1 1. rightPad : negated conditional → KILLED
        if (str == null) {
6211 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
6212
        }
6213 1 1. rightPad : Replaced integer subtraction with addition → KILLED
        final int pads = size - str.length();
6214 2 1. rightPad : changed conditional boundary → SURVIVED
2. rightPad : negated conditional → KILLED
        if (pads <= 0) {
6215 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str; // returns original String when possible
6216
        }
6217 2 1. rightPad : changed conditional boundary → SURVIVED
2. rightPad : negated conditional → KILLED
        if (pads > PAD_LIMIT) {
6218 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return rightPad(str, size, String.valueOf(padChar));
6219
        }
6220 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.concat(repeat(padChar, pads));
6221
    }
6222
6223
    /**
6224
     * <p>Right pad a String with a specified String.</p>
6225
     *
6226
     * <p>The String is padded to the size of {@code size}.</p>
6227
     *
6228
     * <pre>
6229
     * StringUtils.rightPad(null, *, *)      = null
6230
     * StringUtils.rightPad("", 3, "z")      = "zzz"
6231
     * StringUtils.rightPad("bat", 3, "yz")  = "bat"
6232
     * StringUtils.rightPad("bat", 5, "yz")  = "batyz"
6233
     * StringUtils.rightPad("bat", 8, "yz")  = "batyzyzy"
6234
     * StringUtils.rightPad("bat", 1, "yz")  = "bat"
6235
     * StringUtils.rightPad("bat", -1, "yz") = "bat"
6236
     * StringUtils.rightPad("bat", 5, null)  = "bat  "
6237
     * StringUtils.rightPad("bat", 5, "")    = "bat  "
6238
     * </pre>
6239
     *
6240
     * @param str  the String to pad out, may be null
6241
     * @param size  the size to pad to
6242
     * @param padStr  the String to pad with, null or empty treated as single space
6243
     * @return right padded String or original String if no padding is necessary,
6244
     *  {@code null} if null String input
6245
     */
6246
    public static String rightPad(final String str, final int size, String padStr) {
6247 1 1. rightPad : negated conditional → KILLED
        if (str == null) {
6248 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
6249
        }
6250 1 1. rightPad : negated conditional → KILLED
        if (isEmpty(padStr)) {
6251
            padStr = SPACE;
6252
        }
6253
        final int padLen = padStr.length();
6254
        final int strLen = str.length();
6255 1 1. rightPad : Replaced integer subtraction with addition → KILLED
        final int pads = size - strLen;
6256 2 1. rightPad : changed conditional boundary → SURVIVED
2. rightPad : negated conditional → KILLED
        if (pads <= 0) {
6257 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str; // returns original String when possible
6258
        }
6259 3 1. rightPad : changed conditional boundary → SURVIVED
2. rightPad : negated conditional → KILLED
3. rightPad : negated conditional → KILLED
        if (padLen == 1 && pads <= PAD_LIMIT) {
6260 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return rightPad(str, size, padStr.charAt(0));
6261
        }
6262
6263 1 1. rightPad : negated conditional → KILLED
        if (pads == padLen) {
6264 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str.concat(padStr);
6265 2 1. rightPad : changed conditional boundary → SURVIVED
2. rightPad : negated conditional → KILLED
        } else if (pads < padLen) {
6266 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str.concat(padStr.substring(0, pads));
6267
        } else {
6268
            final char[] padding = new char[pads];
6269
            final char[] padChars = padStr.toCharArray();
6270 3 1. rightPad : changed conditional boundary → KILLED
2. rightPad : Changed increment from 1 to -1 → KILLED
3. rightPad : negated conditional → KILLED
            for (int i = 0; i < pads; i++) {
6271 1 1. rightPad : Replaced integer modulus with multiplication → KILLED
                padding[i] = padChars[i % padLen];
6272
            }
6273 1 1. rightPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str.concat(new String(padding));
6274
        }
6275
    }
6276
6277
    /**
6278
     * <p>Left pad a String with spaces (' ').</p>
6279
     *
6280
     * <p>The String is padded to the size of {@code size}.</p>
6281
     *
6282
     * <pre>
6283
     * StringUtils.leftPad(null, *)   = null
6284
     * StringUtils.leftPad("", 3)     = "   "
6285
     * StringUtils.leftPad("bat", 3)  = "bat"
6286
     * StringUtils.leftPad("bat", 5)  = "  bat"
6287
     * StringUtils.leftPad("bat", 1)  = "bat"
6288
     * StringUtils.leftPad("bat", -1) = "bat"
6289
     * </pre>
6290
     *
6291
     * @param str  the String to pad out, may be null
6292
     * @param size  the size to pad to
6293
     * @return left padded String or original String if no padding is necessary,
6294
     *  {@code null} if null String input
6295
     */
6296
    public static String leftPad(final String str, final int size) {
6297 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return leftPad(str, size, ' ');
6298
    }
6299
6300
    /**
6301
     * <p>Left pad a String with a specified character.</p>
6302
     *
6303
     * <p>Pad to a size of {@code size}.</p>
6304
     *
6305
     * <pre>
6306
     * StringUtils.leftPad(null, *, *)     = null
6307
     * StringUtils.leftPad("", 3, 'z')     = "zzz"
6308
     * StringUtils.leftPad("bat", 3, 'z')  = "bat"
6309
     * StringUtils.leftPad("bat", 5, 'z')  = "zzbat"
6310
     * StringUtils.leftPad("bat", 1, 'z')  = "bat"
6311
     * StringUtils.leftPad("bat", -1, 'z') = "bat"
6312
     * </pre>
6313
     *
6314
     * @param str  the String to pad out, may be null
6315
     * @param size  the size to pad to
6316
     * @param padChar  the character to pad with
6317
     * @return left padded String or original String if no padding is necessary,
6318
     *  {@code null} if null String input
6319
     * @since 2.0
6320
     */
6321
    public static String leftPad(final String str, final int size, final char padChar) {
6322 1 1. leftPad : negated conditional → KILLED
        if (str == null) {
6323 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
6324
        }
6325 1 1. leftPad : Replaced integer subtraction with addition → KILLED
        final int pads = size - str.length();
6326 2 1. leftPad : changed conditional boundary → SURVIVED
2. leftPad : negated conditional → KILLED
        if (pads <= 0) {
6327 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str; // returns original String when possible
6328
        }
6329 2 1. leftPad : changed conditional boundary → SURVIVED
2. leftPad : negated conditional → KILLED
        if (pads > PAD_LIMIT) {
6330 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return leftPad(str, size, String.valueOf(padChar));
6331
        }
6332 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return repeat(padChar, pads).concat(str);
6333
    }
6334
6335
    /**
6336
     * <p>Left pad a String with a specified String.</p>
6337
     *
6338
     * <p>Pad to a size of {@code size}.</p>
6339
     *
6340
     * <pre>
6341
     * StringUtils.leftPad(null, *, *)      = null
6342
     * StringUtils.leftPad("", 3, "z")      = "zzz"
6343
     * StringUtils.leftPad("bat", 3, "yz")  = "bat"
6344
     * StringUtils.leftPad("bat", 5, "yz")  = "yzbat"
6345
     * StringUtils.leftPad("bat", 8, "yz")  = "yzyzybat"
6346
     * StringUtils.leftPad("bat", 1, "yz")  = "bat"
6347
     * StringUtils.leftPad("bat", -1, "yz") = "bat"
6348
     * StringUtils.leftPad("bat", 5, null)  = "  bat"
6349
     * StringUtils.leftPad("bat", 5, "")    = "  bat"
6350
     * </pre>
6351
     *
6352
     * @param str  the String to pad out, may be null
6353
     * @param size  the size to pad to
6354
     * @param padStr  the String to pad with, null or empty treated as single space
6355
     * @return left padded String or original String if no padding is necessary,
6356
     *  {@code null} if null String input
6357
     */
6358
    public static String leftPad(final String str, final int size, String padStr) {
6359 1 1. leftPad : negated conditional → KILLED
        if (str == null) {
6360 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
6361
        }
6362 1 1. leftPad : negated conditional → KILLED
        if (isEmpty(padStr)) {
6363
            padStr = SPACE;
6364
        }
6365
        final int padLen = padStr.length();
6366
        final int strLen = str.length();
6367 1 1. leftPad : Replaced integer subtraction with addition → KILLED
        final int pads = size - strLen;
6368 2 1. leftPad : changed conditional boundary → SURVIVED
2. leftPad : negated conditional → KILLED
        if (pads <= 0) {
6369 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str; // returns original String when possible
6370
        }
6371 3 1. leftPad : changed conditional boundary → SURVIVED
2. leftPad : negated conditional → KILLED
3. leftPad : negated conditional → KILLED
        if (padLen == 1 && pads <= PAD_LIMIT) {
6372 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return leftPad(str, size, padStr.charAt(0));
6373
        }
6374
6375 1 1. leftPad : negated conditional → KILLED
        if (pads == padLen) {
6376 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return padStr.concat(str);
6377 2 1. leftPad : changed conditional boundary → SURVIVED
2. leftPad : negated conditional → KILLED
        } else if (pads < padLen) {
6378 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return padStr.substring(0, pads).concat(str);
6379
        } else {
6380
            final char[] padding = new char[pads];
6381
            final char[] padChars = padStr.toCharArray();
6382 3 1. leftPad : changed conditional boundary → KILLED
2. leftPad : Changed increment from 1 to -1 → KILLED
3. leftPad : negated conditional → KILLED
            for (int i = 0; i < pads; i++) {
6383 1 1. leftPad : Replaced integer modulus with multiplication → KILLED
                padding[i] = padChars[i % padLen];
6384
            }
6385 1 1. leftPad : mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return new String(padding).concat(str);
6386
        }
6387
    }
6388
6389
    /**
6390
     * Gets a CharSequence length or {@code 0} if the CharSequence is
6391
     * {@code null}.
6392
     *
6393
     * @param cs
6394
     *            a CharSequence or {@code null}
6395
     * @return CharSequence length or {@code 0} if the CharSequence is
6396
     *         {@code null}.
6397
     * @since 2.4
6398
     * @since 3.0 Changed signature from length(String) to length(CharSequence)
6399
     */
6400
    public static int length(final CharSequence cs) {
6401 2 1. length : negated conditional → KILLED
2. length : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return cs == null ? 0 : cs.length();
6402
    }
6403
6404
    // Centering
6405
    //-----------------------------------------------------------------------
6406
    /**
6407
     * <p>Centers a String in a larger String of size {@code size}
6408
     * using the space character (' ').</p>
6409
     *
6410
     * <p>If the size is less than the String length, the String is returned.
6411
     * A {@code null} String returns {@code null}.
6412
     * A negative size is treated as zero.</p>
6413
     *
6414
     * <p>Equivalent to {@code center(str, size, " ")}.</p>
6415
     *
6416
     * <pre>
6417
     * StringUtils.center(null, *)   = null
6418
     * StringUtils.center("", 4)     = "    "
6419
     * StringUtils.center("ab", -1)  = "ab"
6420
     * StringUtils.center("ab", 4)   = " ab "
6421
     * StringUtils.center("abcd", 2) = "abcd"
6422
     * StringUtils.center("a", 4)    = " a  "
6423
     * </pre>
6424
     *
6425
     * @param str  the String to center, may be null
6426
     * @param size  the int size of new String, negative treated as zero
6427
     * @return centered String, {@code null} if null String input
6428
     */
6429
    public static String center(final String str, final int size) {
6430 1 1. center : mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return center(str, size, ' ');
6431
    }
6432
6433
    /**
6434
     * <p>Centers a String in a larger String of size {@code size}.
6435
     * Uses a supplied character as the value to pad the String with.</p>
6436
     *
6437
     * <p>If the size is less than the String length, the String is returned.
6438
     * A {@code null} String returns {@code null}.
6439
     * A negative size is treated as zero.</p>
6440
     *
6441
     * <pre>
6442
     * StringUtils.center(null, *, *)     = null
6443
     * StringUtils.center("", 4, ' ')     = "    "
6444
     * StringUtils.center("ab", -1, ' ')  = "ab"
6445
     * StringUtils.center("ab", 4, ' ')   = " ab "
6446
     * StringUtils.center("abcd", 2, ' ') = "abcd"
6447
     * StringUtils.center("a", 4, ' ')    = " a  "
6448
     * StringUtils.center("a", 4, 'y')    = "yayy"
6449
     * </pre>
6450
     *
6451
     * @param str  the String to center, may be null
6452
     * @param size  the int size of new String, negative treated as zero
6453
     * @param padChar  the character to pad the new String with
6454
     * @return centered String, {@code null} if null String input
6455
     * @since 2.0
6456
     */
6457
    public static String center(String str, final int size, final char padChar) {
6458 3 1. center : changed conditional boundary → SURVIVED
2. center : negated conditional → KILLED
3. center : negated conditional → KILLED
        if (str == null || size <= 0) {
6459 1 1. center : mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
6460
        }
6461
        final int strLen = str.length();
6462 1 1. center : Replaced integer subtraction with addition → KILLED
        final int pads = size - strLen;
6463 2 1. center : changed conditional boundary → SURVIVED
2. center : negated conditional → KILLED
        if (pads <= 0) {
6464 1 1. center : mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
6465
        }
6466 2 1. center : Replaced integer division with multiplication → KILLED
2. center : Replaced integer addition with subtraction → KILLED
        str = leftPad(str, strLen + pads / 2, padChar);
6467
        str = rightPad(str, size, padChar);
6468 1 1. center : mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str;
6469
    }
6470
6471
    /**
6472
     * <p>Centers a String in a larger String of size {@code size}.
6473
     * Uses a supplied String as the value to pad the String with.</p>
6474
     *
6475
     * <p>If the size is less than the String length, the String is returned.
6476
     * A {@code null} String returns {@code null}.
6477
     * A negative size is treated as zero.</p>
6478
     *
6479
     * <pre>
6480
     * StringUtils.center(null, *, *)     = null
6481
     * StringUtils.center("", 4, " ")     = "    "
6482
     * StringUtils.center("ab", -1, " ")  = "ab"
6483
     * StringUtils.center("ab", 4, " ")   = " ab "
6484
     * StringUtils.center("abcd", 2, " ") = "abcd"
6485
     * StringUtils.center("a", 4, " ")    = " a  "
6486
     * StringUtils.center("a", 4, "yz")   = "yayz"
6487
     * StringUtils.center("abc", 7, null) = "  abc  "
6488
     * StringUtils.center("abc", 7, "")   = "  abc  "
6489
     * </pre>
6490
     *
6491
     * @param str  the String to center, may be null
6492
     * @param size  the int size of new String, negative treated as zero
6493
     * @param padStr  the String to pad the new String with, must not be null or empty
6494
     * @return centered String, {@code null} if null String input
6495
     * @throws IllegalArgumentException if padStr is {@code null} or empty
6496
     */
6497
    public static String center(String str, final int size, String padStr) {
6498 3 1. center : changed conditional boundary → SURVIVED
2. center : negated conditional → KILLED
3. center : negated conditional → KILLED
        if (str == null || size <= 0) {
6499 1 1. center : mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
6500
        }
6501 1 1. center : negated conditional → KILLED
        if (isEmpty(padStr)) {
6502
            padStr = SPACE;
6503
        }
6504
        final int strLen = str.length();
6505 1 1. center : Replaced integer subtraction with addition → KILLED
        final int pads = size - strLen;
6506 2 1. center : changed conditional boundary → SURVIVED
2. center : negated conditional → KILLED
        if (pads <= 0) {
6507 1 1. center : mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
6508
        }
6509 2 1. center : Replaced integer division with multiplication → KILLED
2. center : Replaced integer addition with subtraction → KILLED
        str = leftPad(str, strLen + pads / 2, padStr);
6510
        str = rightPad(str, size, padStr);
6511 1 1. center : mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str;
6512
    }
6513
6514
    // Case conversion
6515
    //-----------------------------------------------------------------------
6516
    /**
6517
     * <p>Converts a String to upper case as per {@link String#toUpperCase()}.</p>
6518
     *
6519
     * <p>A {@code null} input String returns {@code null}.</p>
6520
     *
6521
     * <pre>
6522
     * StringUtils.upperCase(null)  = null
6523
     * StringUtils.upperCase("")    = ""
6524
     * StringUtils.upperCase("aBc") = "ABC"
6525
     * </pre>
6526
     *
6527
     * <p><strong>Note:</strong> As described in the documentation for {@link String#toUpperCase()},
6528
     * the result of this method is affected by the current locale.
6529
     * For platform-independent case transformations, the method {@link #lowerCase(String, Locale)}
6530
     * should be used with a specific locale (e.g. {@link Locale#ENGLISH}).</p>
6531
     *
6532
     * @param str  the String to upper case, may be null
6533
     * @return the upper cased String, {@code null} if null String input
6534
     */
6535
    public static String upperCase(final String str) {
6536 1 1. upperCase : negated conditional → KILLED
        if (str == null) {
6537 1 1. upperCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::upperCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
6538
        }
6539 1 1. upperCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::upperCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.toUpperCase();
6540
    }
6541
6542
    /**
6543
     * <p>Converts a String to upper case as per {@link String#toUpperCase(Locale)}.</p>
6544
     *
6545
     * <p>A {@code null} input String returns {@code null}.</p>
6546
     *
6547
     * <pre>
6548
     * StringUtils.upperCase(null, Locale.ENGLISH)  = null
6549
     * StringUtils.upperCase("", Locale.ENGLISH)    = ""
6550
     * StringUtils.upperCase("aBc", Locale.ENGLISH) = "ABC"
6551
     * </pre>
6552
     *
6553
     * @param str  the String to upper case, may be null
6554
     * @param locale  the locale that defines the case transformation rules, must not be null
6555
     * @return the upper cased String, {@code null} if null String input
6556
     * @since 2.5
6557
     */
6558
    public static String upperCase(final String str, final Locale locale) {
6559 1 1. upperCase : negated conditional → KILLED
        if (str == null) {
6560 1 1. upperCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::upperCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
6561
        }
6562 1 1. upperCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::upperCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.toUpperCase(locale);
6563
    }
6564
6565
    /**
6566
     * <p>Converts a String to lower case as per {@link String#toLowerCase()}.</p>
6567
     *
6568
     * <p>A {@code null} input String returns {@code null}.</p>
6569
     *
6570
     * <pre>
6571
     * StringUtils.lowerCase(null)  = null
6572
     * StringUtils.lowerCase("")    = ""
6573
     * StringUtils.lowerCase("aBc") = "abc"
6574
     * </pre>
6575
     *
6576
     * <p><strong>Note:</strong> As described in the documentation for {@link String#toLowerCase()},
6577
     * the result of this method is affected by the current locale.
6578
     * For platform-independent case transformations, the method {@link #lowerCase(String, Locale)}
6579
     * should be used with a specific locale (e.g. {@link Locale#ENGLISH}).</p>
6580
     *
6581
     * @param str  the String to lower case, may be null
6582
     * @return the lower cased String, {@code null} if null String input
6583
     */
6584
    public static String lowerCase(final String str) {
6585 1 1. lowerCase : negated conditional → KILLED
        if (str == null) {
6586 1 1. lowerCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::lowerCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
6587
        }
6588 1 1. lowerCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::lowerCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.toLowerCase();
6589
    }
6590
6591
    /**
6592
     * <p>Converts a String to lower case as per {@link String#toLowerCase(Locale)}.</p>
6593
     *
6594
     * <p>A {@code null} input String returns {@code null}.</p>
6595
     *
6596
     * <pre>
6597
     * StringUtils.lowerCase(null, Locale.ENGLISH)  = null
6598
     * StringUtils.lowerCase("", Locale.ENGLISH)    = ""
6599
     * StringUtils.lowerCase("aBc", Locale.ENGLISH) = "abc"
6600
     * </pre>
6601
     *
6602
     * @param str  the String to lower case, may be null
6603
     * @param locale  the locale that defines the case transformation rules, must not be null
6604
     * @return the lower cased String, {@code null} if null String input
6605
     * @since 2.5
6606
     */
6607
    public static String lowerCase(final String str, final Locale locale) {
6608 1 1. lowerCase : negated conditional → KILLED
        if (str == null) {
6609 1 1. lowerCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::lowerCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
6610
        }
6611 1 1. lowerCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::lowerCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str.toLowerCase(locale);
6612
    }
6613
6614
    /**
6615
     * <p>Capitalizes a String changing the first character to title case as
6616
     * per {@link Character#toTitleCase(int)}. No other characters are changed.</p>
6617
     *
6618
     * <p>For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#capitalize(String)}.
6619
     * A {@code null} input String returns {@code null}.</p>
6620
     *
6621
     * <pre>
6622
     * StringUtils.capitalize(null)  = null
6623
     * StringUtils.capitalize("")    = ""
6624
     * StringUtils.capitalize("cat") = "Cat"
6625
     * StringUtils.capitalize("cAt") = "CAt"
6626
     * StringUtils.capitalize("'cat'") = "'cat'"
6627
     * </pre>
6628
     *
6629
     * @param str the String to capitalize, may be null
6630
     * @return the capitalized String, {@code null} if null String input
6631
     * @see org.apache.commons.lang3.text.WordUtils#capitalize(String)
6632
     * @see #uncapitalize(String)
6633
     * @since 2.0
6634
     */
6635
    public static String capitalize(final String str) {
6636
        int strLen;
6637 2 1. capitalize : negated conditional → KILLED
2. capitalize : negated conditional → KILLED
        if (str == null || (strLen = str.length()) == 0) {
6638 1 1. capitalize : mutated return of Object value for org/apache/commons/lang3/StringUtils::capitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
6639
        }
6640
6641
        final int firstCodepoint = str.codePointAt(0);
6642
        final int newCodePoint = Character.toTitleCase(firstCodepoint);
6643 1 1. capitalize : negated conditional → KILLED
        if (firstCodepoint == newCodePoint) {
6644
            // already capitalized
6645 1 1. capitalize : mutated return of Object value for org/apache/commons/lang3/StringUtils::capitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
6646
        }
6647
6648
        final int newCodePoints[] = new int[strLen]; // cannot be longer than the char array
6649
        int outOffset = 0;
6650 1 1. capitalize : Changed increment from 1 to -1 → KILLED
        newCodePoints[outOffset++] = newCodePoint; // copy the first codepoint
6651 2 1. capitalize : changed conditional boundary → KILLED
2. capitalize : negated conditional → KILLED
        for (int inOffset = Character.charCount(firstCodepoint); inOffset < strLen; ) {
6652
            final int codepoint = str.codePointAt(inOffset);
6653 1 1. capitalize : Changed increment from 1 to -1 → KILLED
            newCodePoints[outOffset++] = codepoint; // copy the remaining ones
6654 1 1. capitalize : Replaced integer addition with subtraction → KILLED
            inOffset += Character.charCount(codepoint);
6655
         }
6656 1 1. capitalize : mutated return of Object value for org/apache/commons/lang3/StringUtils::capitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new String(newCodePoints, 0, outOffset);
6657
    }
6658
6659
    /**
6660
     * <p>Uncapitalizes a String, changing the first character to lower case as
6661
     * per {@link Character#toLowerCase(int)}. No other characters are changed.</p>
6662
     *
6663
     * <p>For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#uncapitalize(String)}.
6664
     * A {@code null} input String returns {@code null}.</p>
6665
     *
6666
     * <pre>
6667
     * StringUtils.uncapitalize(null)  = null
6668
     * StringUtils.uncapitalize("")    = ""
6669
     * StringUtils.uncapitalize("cat") = "cat"
6670
     * StringUtils.uncapitalize("Cat") = "cat"
6671
     * StringUtils.uncapitalize("CAT") = "cAT"
6672
     * </pre>
6673
     *
6674
     * @param str the String to uncapitalize, may be null
6675
     * @return the uncapitalized String, {@code null} if null String input
6676
     * @see org.apache.commons.lang3.text.WordUtils#uncapitalize(String)
6677
     * @see #capitalize(String)
6678
     * @since 2.0
6679
     */
6680
    public static String uncapitalize(final String str) {
6681
        int strLen;
6682 2 1. uncapitalize : negated conditional → KILLED
2. uncapitalize : negated conditional → KILLED
        if (str == null || (strLen = str.length()) == 0) {
6683 1 1. uncapitalize : mutated return of Object value for org/apache/commons/lang3/StringUtils::uncapitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
6684
        }
6685
6686
        final int firstCodepoint = str.codePointAt(0);
6687
        final int newCodePoint = Character.toLowerCase(firstCodepoint);
6688 1 1. uncapitalize : negated conditional → KILLED
        if (firstCodepoint == newCodePoint) {
6689
            // already capitalized
6690 1 1. uncapitalize : mutated return of Object value for org/apache/commons/lang3/StringUtils::uncapitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
6691
        }
6692
6693
        final int newCodePoints[] = new int[strLen]; // cannot be longer than the char array
6694
        int outOffset = 0;
6695 1 1. uncapitalize : Changed increment from 1 to -1 → KILLED
        newCodePoints[outOffset++] = newCodePoint; // copy the first codepoint
6696 2 1. uncapitalize : changed conditional boundary → KILLED
2. uncapitalize : negated conditional → KILLED
        for (int inOffset = Character.charCount(firstCodepoint); inOffset < strLen; ) {
6697
            final int codepoint = str.codePointAt(inOffset);
6698 1 1. uncapitalize : Changed increment from 1 to -1 → KILLED
            newCodePoints[outOffset++] = codepoint; // copy the remaining ones
6699 1 1. uncapitalize : Replaced integer addition with subtraction → KILLED
            inOffset += Character.charCount(codepoint);
6700
         }
6701 1 1. uncapitalize : mutated return of Object value for org/apache/commons/lang3/StringUtils::uncapitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new String(newCodePoints, 0, outOffset);
6702
    }
6703
6704
    /**
6705
     * <p>Swaps the case of a String changing upper and title case to
6706
     * lower case, and lower case to upper case.</p>
6707
     *
6708
     * <ul>
6709
     *  <li>Upper case character converts to Lower case</li>
6710
     *  <li>Title case character converts to Lower case</li>
6711
     *  <li>Lower case character converts to Upper case</li>
6712
     * </ul>
6713
     *
6714
     * <p>For a word based algorithm, see {@link org.apache.commons.lang3.text.WordUtils#swapCase(String)}.
6715
     * A {@code null} input String returns {@code null}.</p>
6716
     *
6717
     * <pre>
6718
     * StringUtils.swapCase(null)                 = null
6719
     * StringUtils.swapCase("")                   = ""
6720
     * StringUtils.swapCase("The dog has a BONE") = "tHE DOG HAS A bone"
6721
     * </pre>
6722
     *
6723
     * <p>NOTE: This method changed in Lang version 2.0.
6724
     * It no longer performs a word based algorithm.
6725
     * If you only use ASCII, you will notice no change.
6726
     * That functionality is available in org.apache.commons.lang3.text.WordUtils.</p>
6727
     *
6728
     * @param str  the String to swap case, may be null
6729
     * @return the changed String, {@code null} if null String input
6730
     */
6731
    public static String swapCase(final String str) {
6732 1 1. swapCase : negated conditional → KILLED
        if (StringUtils.isEmpty(str)) {
6733 1 1. swapCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::swapCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
6734
        }
6735
6736
        final int strLen = str.length();
6737
        final int newCodePoints[] = new int[strLen]; // cannot be longer than the char array
6738
        int outOffset = 0;
6739 2 1. swapCase : changed conditional boundary → KILLED
2. swapCase : negated conditional → KILLED
        for (int i = 0; i < strLen; ) {
6740
            final int oldCodepoint = str.codePointAt(i);
6741
            final int newCodePoint;
6742 1 1. swapCase : negated conditional → KILLED
            if (Character.isUpperCase(oldCodepoint)) {
6743
                newCodePoint = Character.toLowerCase(oldCodepoint);
6744 1 1. swapCase : negated conditional → KILLED
            } else if (Character.isTitleCase(oldCodepoint)) {
6745
                newCodePoint = Character.toLowerCase(oldCodepoint);
6746 1 1. swapCase : negated conditional → KILLED
            } else if (Character.isLowerCase(oldCodepoint)) {
6747
                newCodePoint = Character.toUpperCase(oldCodepoint);
6748
            } else {
6749
                newCodePoint = oldCodepoint;
6750
            }
6751 1 1. swapCase : Changed increment from 1 to -1 → KILLED
            newCodePoints[outOffset++] = newCodePoint;
6752 1 1. swapCase : Replaced integer addition with subtraction → KILLED
            i += Character.charCount(newCodePoint);
6753
         }
6754 1 1. swapCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::swapCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new String(newCodePoints, 0, outOffset);
6755
    }
6756
6757
    // Count matches
6758
    //-----------------------------------------------------------------------
6759
    /**
6760
     * <p>Counts how many times the substring appears in the larger string.</p>
6761
     *
6762
     * <p>A {@code null} or empty ("") String input returns {@code 0}.</p>
6763
     *
6764
     * <pre>
6765
     * StringUtils.countMatches(null, *)       = 0
6766
     * StringUtils.countMatches("", *)         = 0
6767
     * StringUtils.countMatches("abba", null)  = 0
6768
     * StringUtils.countMatches("abba", "")    = 0
6769
     * StringUtils.countMatches("abba", "a")   = 2
6770
     * StringUtils.countMatches("abba", "ab")  = 1
6771
     * StringUtils.countMatches("abba", "xxx") = 0
6772
     * </pre>
6773
     *
6774
     * @param str  the CharSequence to check, may be null
6775
     * @param sub  the substring to count, may be null
6776
     * @return the number of occurrences, 0 if either CharSequence is {@code null}
6777
     * @since 3.0 Changed signature from countMatches(String, String) to countMatches(CharSequence, CharSequence)
6778
     */
6779
    public static int countMatches(final CharSequence str, final CharSequence sub) {
6780 2 1. countMatches : negated conditional → KILLED
2. countMatches : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(sub)) {
6781 1 1. countMatches : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return 0;
6782
        }
6783
        int count = 0;
6784
        int idx = 0;
6785 1 1. countMatches : negated conditional → KILLED
        while ((idx = CharSequenceUtils.indexOf(str, sub, idx)) != INDEX_NOT_FOUND) {
6786 1 1. countMatches : Changed increment from 1 to -1 → KILLED
            count++;
6787 1 1. countMatches : Replaced integer addition with subtraction → TIMED_OUT
            idx += sub.length();
6788
        }
6789 1 1. countMatches : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return count;
6790
    }
6791
6792
    /**
6793
     * <p>Counts how many times the char appears in the given string.</p>
6794
     *
6795
     * <p>A {@code null} or empty ("") String input returns {@code 0}.</p>
6796
     *
6797
     * <pre>
6798
     * StringUtils.countMatches(null, *)       = 0
6799
     * StringUtils.countMatches("", *)         = 0
6800
     * StringUtils.countMatches("abba", 0)  = 0
6801
     * StringUtils.countMatches("abba", 'a')   = 2
6802
     * StringUtils.countMatches("abba", 'b')  = 2
6803
     * StringUtils.countMatches("abba", 'x') = 0
6804
     * </pre>
6805
     *
6806
     * @param str  the CharSequence to check, may be null
6807
     * @param ch  the char to count
6808
     * @return the number of occurrences, 0 if the CharSequence is {@code null}
6809
     * @since 3.4
6810
     */
6811
    public static int countMatches(final CharSequence str, final char ch) {
6812 1 1. countMatches : negated conditional → KILLED
        if (isEmpty(str)) {
6813 1 1. countMatches : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return 0;
6814
        }
6815
        int count = 0;
6816
        // We could also call str.toCharArray() for faster look ups but that would generate more garbage.
6817 3 1. countMatches : changed conditional boundary → KILLED
2. countMatches : Changed increment from 1 to -1 → KILLED
3. countMatches : negated conditional → KILLED
        for (int i = 0; i < str.length(); i++) {
6818 1 1. countMatches : negated conditional → KILLED
            if (ch == str.charAt(i)) {
6819 1 1. countMatches : Changed increment from 1 to -1 → KILLED
                count++;
6820
            }
6821
        }
6822 1 1. countMatches : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return count;
6823
    }
6824
6825
    // Character Tests
6826
    //-----------------------------------------------------------------------
6827
    /**
6828
     * <p>Checks if the CharSequence contains only Unicode letters.</p>
6829
     *
6830
     * <p>{@code null} will return {@code false}.
6831
     * An empty CharSequence (length()=0) will return {@code false}.</p>
6832
     *
6833
     * <pre>
6834
     * StringUtils.isAlpha(null)   = false
6835
     * StringUtils.isAlpha("")     = false
6836
     * StringUtils.isAlpha("  ")   = false
6837
     * StringUtils.isAlpha("abc")  = true
6838
     * StringUtils.isAlpha("ab2c") = false
6839
     * StringUtils.isAlpha("ab-c") = false
6840
     * </pre>
6841
     *
6842
     * @param cs  the CharSequence to check, may be null
6843
     * @return {@code true} if only contains letters, and is non-null
6844
     * @since 3.0 Changed signature from isAlpha(String) to isAlpha(CharSequence)
6845
     * @since 3.0 Changed "" to return false and not true
6846
     */
6847
    public static boolean isAlpha(final CharSequence cs) {
6848 1 1. isAlpha : negated conditional → KILLED
        if (isEmpty(cs)) {
6849 1 1. isAlpha : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
6850
        }
6851
        final int sz = cs.length();
6852 3 1. isAlpha : changed conditional boundary → KILLED
2. isAlpha : Changed increment from 1 to -1 → KILLED
3. isAlpha : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
6853 1 1. isAlpha : negated conditional → KILLED
            if (Character.isLetter(cs.charAt(i)) == false) {
6854 1 1. isAlpha : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
6855
            }
6856
        }
6857 1 1. isAlpha : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
6858
    }
6859
6860
    /**
6861
     * <p>Checks if the CharSequence contains only Unicode letters and
6862
     * space (' ').</p>
6863
     *
6864
     * <p>{@code null} will return {@code false}
6865
     * An empty CharSequence (length()=0) will return {@code true}.</p>
6866
     *
6867
     * <pre>
6868
     * StringUtils.isAlphaSpace(null)   = false
6869
     * StringUtils.isAlphaSpace("")     = true
6870
     * StringUtils.isAlphaSpace("  ")   = true
6871
     * StringUtils.isAlphaSpace("abc")  = true
6872
     * StringUtils.isAlphaSpace("ab c") = true
6873
     * StringUtils.isAlphaSpace("ab2c") = false
6874
     * StringUtils.isAlphaSpace("ab-c") = false
6875
     * </pre>
6876
     *
6877
     * @param cs  the CharSequence to check, may be null
6878
     * @return {@code true} if only contains letters and space,
6879
     *  and is non-null
6880
     * @since 3.0 Changed signature from isAlphaSpace(String) to isAlphaSpace(CharSequence)
6881
     */
6882
    public static boolean isAlphaSpace(final CharSequence cs) {
6883 1 1. isAlphaSpace : negated conditional → KILLED
        if (cs == null) {
6884 1 1. isAlphaSpace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
6885
        }
6886
        final int sz = cs.length();
6887 3 1. isAlphaSpace : changed conditional boundary → KILLED
2. isAlphaSpace : Changed increment from 1 to -1 → KILLED
3. isAlphaSpace : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
6888 2 1. isAlphaSpace : negated conditional → KILLED
2. isAlphaSpace : negated conditional → KILLED
            if (Character.isLetter(cs.charAt(i)) == false && cs.charAt(i) != ' ') {
6889 1 1. isAlphaSpace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
6890
            }
6891
        }
6892 1 1. isAlphaSpace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
6893
    }
6894
6895
    /**
6896
     * <p>Checks if the CharSequence contains only Unicode letters or digits.</p>
6897
     *
6898
     * <p>{@code null} will return {@code false}.
6899
     * An empty CharSequence (length()=0) will return {@code false}.</p>
6900
     *
6901
     * <pre>
6902
     * StringUtils.isAlphanumeric(null)   = false
6903
     * StringUtils.isAlphanumeric("")     = false
6904
     * StringUtils.isAlphanumeric("  ")   = false
6905
     * StringUtils.isAlphanumeric("abc")  = true
6906
     * StringUtils.isAlphanumeric("ab c") = false
6907
     * StringUtils.isAlphanumeric("ab2c") = true
6908
     * StringUtils.isAlphanumeric("ab-c") = false
6909
     * </pre>
6910
     *
6911
     * @param cs  the CharSequence to check, may be null
6912
     * @return {@code true} if only contains letters or digits,
6913
     *  and is non-null
6914
     * @since 3.0 Changed signature from isAlphanumeric(String) to isAlphanumeric(CharSequence)
6915
     * @since 3.0 Changed "" to return false and not true
6916
     */
6917
    public static boolean isAlphanumeric(final CharSequence cs) {
6918 1 1. isAlphanumeric : negated conditional → KILLED
        if (isEmpty(cs)) {
6919 1 1. isAlphanumeric : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
6920
        }
6921
        final int sz = cs.length();
6922 3 1. isAlphanumeric : changed conditional boundary → KILLED
2. isAlphanumeric : Changed increment from 1 to -1 → KILLED
3. isAlphanumeric : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
6923 1 1. isAlphanumeric : negated conditional → KILLED
            if (Character.isLetterOrDigit(cs.charAt(i)) == false) {
6924 1 1. isAlphanumeric : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
6925
            }
6926
        }
6927 1 1. isAlphanumeric : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
6928
    }
6929
6930
    /**
6931
     * <p>Checks if the CharSequence contains only Unicode letters, digits
6932
     * or space ({@code ' '}).</p>
6933
     *
6934
     * <p>{@code null} will return {@code false}.
6935
     * An empty CharSequence (length()=0) will return {@code true}.</p>
6936
     *
6937
     * <pre>
6938
     * StringUtils.isAlphanumericSpace(null)   = false
6939
     * StringUtils.isAlphanumericSpace("")     = true
6940
     * StringUtils.isAlphanumericSpace("  ")   = true
6941
     * StringUtils.isAlphanumericSpace("abc")  = true
6942
     * StringUtils.isAlphanumericSpace("ab c") = true
6943
     * StringUtils.isAlphanumericSpace("ab2c") = true
6944
     * StringUtils.isAlphanumericSpace("ab-c") = false
6945
     * </pre>
6946
     *
6947
     * @param cs  the CharSequence to check, may be null
6948
     * @return {@code true} if only contains letters, digits or space,
6949
     *  and is non-null
6950
     * @since 3.0 Changed signature from isAlphanumericSpace(String) to isAlphanumericSpace(CharSequence)
6951
     */
6952
    public static boolean isAlphanumericSpace(final CharSequence cs) {
6953 1 1. isAlphanumericSpace : negated conditional → KILLED
        if (cs == null) {
6954 1 1. isAlphanumericSpace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
6955
        }
6956
        final int sz = cs.length();
6957 3 1. isAlphanumericSpace : changed conditional boundary → KILLED
2. isAlphanumericSpace : Changed increment from 1 to -1 → KILLED
3. isAlphanumericSpace : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
6958 2 1. isAlphanumericSpace : negated conditional → KILLED
2. isAlphanumericSpace : negated conditional → KILLED
            if (Character.isLetterOrDigit(cs.charAt(i)) == false && cs.charAt(i) != ' ') {
6959 1 1. isAlphanumericSpace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
6960
            }
6961
        }
6962 1 1. isAlphanumericSpace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
6963
    }
6964
6965
    /**
6966
     * <p>Checks if the CharSequence contains only ASCII printable characters.</p>
6967
     *
6968
     * <p>{@code null} will return {@code false}.
6969
     * An empty CharSequence (length()=0) will return {@code true}.</p>
6970
     *
6971
     * <pre>
6972
     * StringUtils.isAsciiPrintable(null)     = false
6973
     * StringUtils.isAsciiPrintable("")       = true
6974
     * StringUtils.isAsciiPrintable(" ")      = true
6975
     * StringUtils.isAsciiPrintable("Ceki")   = true
6976
     * StringUtils.isAsciiPrintable("ab2c")   = true
6977
     * StringUtils.isAsciiPrintable("!ab-c~") = true
6978
     * StringUtils.isAsciiPrintable("\u0020") = true
6979
     * StringUtils.isAsciiPrintable("\u0021") = true
6980
     * StringUtils.isAsciiPrintable("\u007e") = true
6981
     * StringUtils.isAsciiPrintable("\u007f") = false
6982
     * StringUtils.isAsciiPrintable("Ceki G\u00fclc\u00fc") = false
6983
     * </pre>
6984
     *
6985
     * @param cs the CharSequence to check, may be null
6986
     * @return {@code true} if every character is in the range
6987
     *  32 thru 126
6988
     * @since 2.1
6989
     * @since 3.0 Changed signature from isAsciiPrintable(String) to isAsciiPrintable(CharSequence)
6990
     */
6991
    public static boolean isAsciiPrintable(final CharSequence cs) {
6992 1 1. isAsciiPrintable : negated conditional → KILLED
        if (cs == null) {
6993 1 1. isAsciiPrintable : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
6994
        }
6995
        final int sz = cs.length();
6996 3 1. isAsciiPrintable : changed conditional boundary → KILLED
2. isAsciiPrintable : Changed increment from 1 to -1 → KILLED
3. isAsciiPrintable : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
6997 1 1. isAsciiPrintable : negated conditional → KILLED
            if (CharUtils.isAsciiPrintable(cs.charAt(i)) == false) {
6998 1 1. isAsciiPrintable : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
6999
            }
7000
        }
7001 1 1. isAsciiPrintable : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
7002
    }
7003
7004
    /**
7005
     * <p>Checks if the CharSequence contains only Unicode digits.
7006
     * A decimal point is not a Unicode digit and returns false.</p>
7007
     *
7008
     * <p>{@code null} will return {@code false}.
7009
     * An empty CharSequence (length()=0) will return {@code false}.</p>
7010
     *
7011
     * <p>Note that the method does not allow for a leading sign, either positive or negative.
7012
     * Also, if a String passes the numeric test, it may still generate a NumberFormatException
7013
     * when parsed by Integer.parseInt or Long.parseLong, e.g. if the value is outside the range
7014
     * for int or long respectively.</p>
7015
     *
7016
     * <pre>
7017
     * StringUtils.isNumeric(null)   = false
7018
     * StringUtils.isNumeric("")     = false
7019
     * StringUtils.isNumeric("  ")   = false
7020
     * StringUtils.isNumeric("123")  = true
7021
     * StringUtils.isNumeric("\u0967\u0968\u0969")  = true
7022
     * StringUtils.isNumeric("12 3") = false
7023
     * StringUtils.isNumeric("ab2c") = false
7024
     * StringUtils.isNumeric("12-3") = false
7025
     * StringUtils.isNumeric("12.3") = false
7026
     * StringUtils.isNumeric("-123") = false
7027
     * StringUtils.isNumeric("+123") = false
7028
     * </pre>
7029
     *
7030
     * @param cs  the CharSequence to check, may be null
7031
     * @return {@code true} if only contains digits, and is non-null
7032
     * @since 3.0 Changed signature from isNumeric(String) to isNumeric(CharSequence)
7033
     * @since 3.0 Changed "" to return false and not true
7034
     */
7035
    public static boolean isNumeric(final CharSequence cs) {
7036 1 1. isNumeric : negated conditional → KILLED
        if (isEmpty(cs)) {
7037 1 1. isNumeric : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
7038
        }
7039
        final int sz = cs.length();
7040 3 1. isNumeric : changed conditional boundary → KILLED
2. isNumeric : Changed increment from 1 to -1 → KILLED
3. isNumeric : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
7041 1 1. isNumeric : negated conditional → KILLED
            if (!Character.isDigit(cs.charAt(i))) {
7042 1 1. isNumeric : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
7043
            }
7044
        }
7045 1 1. isNumeric : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
7046
    }
7047
7048
    /**
7049
     * <p>Checks if the CharSequence contains only Unicode digits or space
7050
     * ({@code ' '}).
7051
     * A decimal point is not a Unicode digit and returns false.</p>
7052
     *
7053
     * <p>{@code null} will return {@code false}.
7054
     * An empty CharSequence (length()=0) will return {@code true}.</p>
7055
     *
7056
     * <pre>
7057
     * StringUtils.isNumericSpace(null)   = false
7058
     * StringUtils.isNumericSpace("")     = true
7059
     * StringUtils.isNumericSpace("  ")   = true
7060
     * StringUtils.isNumericSpace("123")  = true
7061
     * StringUtils.isNumericSpace("12 3") = true
7062
     * StringUtils.isNumeric("\u0967\u0968\u0969")  = true
7063
     * StringUtils.isNumeric("\u0967\u0968 \u0969")  = true
7064
     * StringUtils.isNumericSpace("ab2c") = false
7065
     * StringUtils.isNumericSpace("12-3") = false
7066
     * StringUtils.isNumericSpace("12.3") = false
7067
     * </pre>
7068
     *
7069
     * @param cs  the CharSequence to check, may be null
7070
     * @return {@code true} if only contains digits or space,
7071
     *  and is non-null
7072
     * @since 3.0 Changed signature from isNumericSpace(String) to isNumericSpace(CharSequence)
7073
     */
7074
    public static boolean isNumericSpace(final CharSequence cs) {
7075 1 1. isNumericSpace : negated conditional → KILLED
        if (cs == null) {
7076 1 1. isNumericSpace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
7077
        }
7078
        final int sz = cs.length();
7079 3 1. isNumericSpace : changed conditional boundary → KILLED
2. isNumericSpace : Changed increment from 1 to -1 → KILLED
3. isNumericSpace : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
7080 2 1. isNumericSpace : negated conditional → KILLED
2. isNumericSpace : negated conditional → KILLED
            if (Character.isDigit(cs.charAt(i)) == false && cs.charAt(i) != ' ') {
7081 1 1. isNumericSpace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
7082
            }
7083
        }
7084 1 1. isNumericSpace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
7085
    }
7086
7087
    /**
7088
     * <p>Checks if the CharSequence contains only whitespace.</p>
7089
     * 
7090
     * <p>Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
7091
     *
7092
     * <p>{@code null} will return {@code false}.
7093
     * An empty CharSequence (length()=0) will return {@code true}.</p>
7094
     *
7095
     * <pre>
7096
     * StringUtils.isWhitespace(null)   = false
7097
     * StringUtils.isWhitespace("")     = true
7098
     * StringUtils.isWhitespace("  ")   = true
7099
     * StringUtils.isWhitespace("abc")  = false
7100
     * StringUtils.isWhitespace("ab2c") = false
7101
     * StringUtils.isWhitespace("ab-c") = false
7102
     * </pre>
7103
     *
7104
     * @param cs  the CharSequence to check, may be null
7105
     * @return {@code true} if only contains whitespace, and is non-null
7106
     * @since 2.0
7107
     * @since 3.0 Changed signature from isWhitespace(String) to isWhitespace(CharSequence)
7108
     */
7109
    public static boolean isWhitespace(final CharSequence cs) {
7110 1 1. isWhitespace : negated conditional → KILLED
        if (cs == null) {
7111 1 1. isWhitespace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
7112
        }
7113
        final int sz = cs.length();
7114 3 1. isWhitespace : changed conditional boundary → KILLED
2. isWhitespace : Changed increment from 1 to -1 → KILLED
3. isWhitespace : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
7115 1 1. isWhitespace : negated conditional → KILLED
            if (Character.isWhitespace(cs.charAt(i)) == false) {
7116 1 1. isWhitespace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
7117
            }
7118
        }
7119 1 1. isWhitespace : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
7120
    }
7121
7122
    /**
7123
     * <p>Checks if the CharSequence contains only lowercase characters.</p>
7124
     *
7125
     * <p>{@code null} will return {@code false}.
7126
     * An empty CharSequence (length()=0) will return {@code false}.</p>
7127
     *
7128
     * <pre>
7129
     * StringUtils.isAllLowerCase(null)   = false
7130
     * StringUtils.isAllLowerCase("")     = false
7131
     * StringUtils.isAllLowerCase("  ")   = false
7132
     * StringUtils.isAllLowerCase("abc")  = true
7133
     * StringUtils.isAllLowerCase("abC")  = false
7134
     * StringUtils.isAllLowerCase("ab c") = false
7135
     * StringUtils.isAllLowerCase("ab1c") = false
7136
     * StringUtils.isAllLowerCase("ab/c") = false
7137
     * </pre>
7138
     *
7139
     * @param cs  the CharSequence to check, may be null
7140
     * @return {@code true} if only contains lowercase characters, and is non-null
7141
     * @since 2.5
7142
     * @since 3.0 Changed signature from isAllLowerCase(String) to isAllLowerCase(CharSequence)
7143
     */
7144
    public static boolean isAllLowerCase(final CharSequence cs) {
7145 2 1. isAllLowerCase : negated conditional → KILLED
2. isAllLowerCase : negated conditional → KILLED
        if (cs == null || isEmpty(cs)) {
7146 1 1. isAllLowerCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
7147
        }
7148
        final int sz = cs.length();
7149 3 1. isAllLowerCase : changed conditional boundary → KILLED
2. isAllLowerCase : Changed increment from 1 to -1 → KILLED
3. isAllLowerCase : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
7150 1 1. isAllLowerCase : negated conditional → KILLED
            if (Character.isLowerCase(cs.charAt(i)) == false) {
7151 1 1. isAllLowerCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
7152
            }
7153
        }
7154 1 1. isAllLowerCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
7155
    }
7156
7157
    /**
7158
     * <p>Checks if the CharSequence contains only uppercase characters.</p>
7159
     *
7160
     * <p>{@code null} will return {@code false}.
7161
     * An empty String (length()=0) will return {@code false}.</p>
7162
     *
7163
     * <pre>
7164
     * StringUtils.isAllUpperCase(null)   = false
7165
     * StringUtils.isAllUpperCase("")     = false
7166
     * StringUtils.isAllUpperCase("  ")   = false
7167
     * StringUtils.isAllUpperCase("ABC")  = true
7168
     * StringUtils.isAllUpperCase("aBC")  = false
7169
     * StringUtils.isAllUpperCase("A C")  = false
7170
     * StringUtils.isAllUpperCase("A1C")  = false
7171
     * StringUtils.isAllUpperCase("A/C")  = false
7172
     * </pre>
7173
     *
7174
     * @param cs the CharSequence to check, may be null
7175
     * @return {@code true} if only contains uppercase characters, and is non-null
7176
     * @since 2.5
7177
     * @since 3.0 Changed signature from isAllUpperCase(String) to isAllUpperCase(CharSequence)
7178
     */
7179
    public static boolean isAllUpperCase(final CharSequence cs) {
7180 2 1. isAllUpperCase : negated conditional → KILLED
2. isAllUpperCase : negated conditional → KILLED
        if (cs == null || isEmpty(cs)) {
7181 1 1. isAllUpperCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
7182
        }
7183
        final int sz = cs.length();
7184 3 1. isAllUpperCase : changed conditional boundary → KILLED
2. isAllUpperCase : Changed increment from 1 to -1 → KILLED
3. isAllUpperCase : negated conditional → KILLED
        for (int i = 0; i < sz; i++) {
7185 1 1. isAllUpperCase : negated conditional → KILLED
            if (Character.isUpperCase(cs.charAt(i)) == false) {
7186 1 1. isAllUpperCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return false;
7187
            }
7188
        }
7189 1 1. isAllUpperCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return true;
7190
    }
7191
7192
    // Defaults
7193
    //-----------------------------------------------------------------------
7194
    /**
7195
     * <p>Returns either the passed in String,
7196
     * or if the String is {@code null}, an empty String ("").</p>
7197
     *
7198
     * <pre>
7199
     * StringUtils.defaultString(null)  = ""
7200
     * StringUtils.defaultString("")    = ""
7201
     * StringUtils.defaultString("bat") = "bat"
7202
     * </pre>
7203
     *
7204
     * @see ObjectUtils#toString(Object)
7205
     * @see String#valueOf(Object)
7206
     * @param str  the String to check, may be null
7207
     * @return the passed in String, or the empty String if it
7208
     *  was {@code null}
7209
     */
7210
    public static String defaultString(final String str) {
7211 2 1. defaultString : negated conditional → KILLED
2. defaultString : mutated return of Object value for org/apache/commons/lang3/StringUtils::defaultString to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str == null ? EMPTY : str;
7212
    }
7213
7214
    /**
7215
     * <p>Returns either the passed in String, or if the String is
7216
     * {@code null}, the value of {@code defaultStr}.</p>
7217
     *
7218
     * <pre>
7219
     * StringUtils.defaultString(null, "NULL")  = "NULL"
7220
     * StringUtils.defaultString("", "NULL")    = ""
7221
     * StringUtils.defaultString("bat", "NULL") = "bat"
7222
     * </pre>
7223
     *
7224
     * @see ObjectUtils#toString(Object,String)
7225
     * @see String#valueOf(Object)
7226
     * @param str  the String to check, may be null
7227
     * @param defaultStr  the default String to return
7228
     *  if the input is {@code null}, may be null
7229
     * @return the passed in String, or the default if it was {@code null}
7230
     */
7231
    public static String defaultString(final String str, final String defaultStr) {
7232 2 1. defaultString : negated conditional → KILLED
2. defaultString : mutated return of Object value for org/apache/commons/lang3/StringUtils::defaultString to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str == null ? defaultStr : str;
7233
    }
7234
7235
    /**
7236
     * <p>Returns either the passed in CharSequence, or if the CharSequence is
7237
     * whitespace, empty ("") or {@code null}, the value of {@code defaultStr}.</p>
7238
     * 
7239
     * <p>Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
7240
     *
7241
     * <pre>
7242
     * StringUtils.defaultIfBlank(null, "NULL")  = "NULL"
7243
     * StringUtils.defaultIfBlank("", "NULL")    = "NULL"
7244
     * StringUtils.defaultIfBlank(" ", "NULL")   = "NULL"
7245
     * StringUtils.defaultIfBlank("bat", "NULL") = "bat"
7246
     * StringUtils.defaultIfBlank("", null)      = null
7247
     * </pre>
7248
     * @param <T> the specific kind of CharSequence
7249
     * @param str the CharSequence to check, may be null
7250
     * @param defaultStr  the default CharSequence to return
7251
     *  if the input is whitespace, empty ("") or {@code null}, may be null
7252
     * @return the passed in CharSequence, or the default
7253
     * @see StringUtils#defaultString(String, String)
7254
     */
7255
    public static <T extends CharSequence> T defaultIfBlank(final T str, final T defaultStr) {
7256 2 1. defaultIfBlank : negated conditional → KILLED
2. defaultIfBlank : mutated return of Object value for org/apache/commons/lang3/StringUtils::defaultIfBlank to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return isBlank(str) ? defaultStr : str;
7257
    }
7258
7259
    /**
7260
     * <p>Returns either the passed in CharSequence, or if the CharSequence is
7261
     * empty or {@code null}, the value of {@code defaultStr}.</p>
7262
     *
7263
     * <pre>
7264
     * StringUtils.defaultIfEmpty(null, "NULL")  = "NULL"
7265
     * StringUtils.defaultIfEmpty("", "NULL")    = "NULL"
7266
     * StringUtils.defaultIfEmpty(" ", "NULL")   = " "
7267
     * StringUtils.defaultIfEmpty("bat", "NULL") = "bat"
7268
     * StringUtils.defaultIfEmpty("", null)      = null
7269
     * </pre>
7270
     * @param <T> the specific kind of CharSequence
7271
     * @param str  the CharSequence to check, may be null
7272
     * @param defaultStr  the default CharSequence to return
7273
     *  if the input is empty ("") or {@code null}, may be null
7274
     * @return the passed in CharSequence, or the default
7275
     * @see StringUtils#defaultString(String, String)
7276
     */
7277
    public static <T extends CharSequence> T defaultIfEmpty(final T str, final T defaultStr) {
7278 2 1. defaultIfEmpty : negated conditional → KILLED
2. defaultIfEmpty : mutated return of Object value for org/apache/commons/lang3/StringUtils::defaultIfEmpty to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return isEmpty(str) ? defaultStr : str;
7279
    }
7280
7281
    // Rotating (circular shift)
7282
    //-----------------------------------------------------------------------
7283
    /**
7284
     * <p>Rotate (circular shift) a String of {@code shift} characters.</p>
7285
     * <ul>
7286
     *  <li>If {@code shift > 0}, right circular shift (ex : ABCDEF =&gt; FABCDE)</li>
7287
     *  <li>If {@code shift < 0}, left circular shift (ex : ABCDEF =&gt; BCDEFA)</li>
7288
     * </ul>
7289
     *
7290
     * <pre>
7291
     * StringUtils.rotate(null, *)        = null
7292
     * StringUtils.rotate("", *)          = ""
7293
     * StringUtils.rotate("abcdefg", 0)   = "abcdefg"
7294
     * StringUtils.rotate("abcdefg", 2)   = "fgabcde"
7295
     * StringUtils.rotate("abcdefg", -2)  = "cdefgab"
7296
     * StringUtils.rotate("abcdefg", 7)   = "abcdefg"
7297
     * StringUtils.rotate("abcdefg", -7)  = "abcdefg"
7298
     * StringUtils.rotate("abcdefg", 9)   = "fgabcde"
7299
     * StringUtils.rotate("abcdefg", -9)  = "cdefgab"
7300
     * </pre>
7301
     *
7302
     * @param str  the String to rotate, may be null
7303
     * @param shift  number of time to shift (positive : right shift, negative : left shift)
7304
     * @return the rotated String,
7305
     *          or the original String if {@code shift == 0},
7306
     *          or {@code null} if null String input
7307
     * @since 3.5
7308
     */
7309
    public static String rotate(final String str, final int shift) {
7310 1 1. rotate : negated conditional → KILLED
        if (str == null) {
7311 1 1. rotate : mutated return of Object value for org/apache/commons/lang3/StringUtils::rotate to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
7312
        }
7313
7314
        final int strLen = str.length();
7315 4 1. rotate : Replaced integer modulus with multiplication → SURVIVED
2. rotate : negated conditional → KILLED
3. rotate : negated conditional → KILLED
4. rotate : negated conditional → KILLED
        if (shift == 0 || strLen == 0 || shift % strLen == 0) {
7316 1 1. rotate : mutated return of Object value for org/apache/commons/lang3/StringUtils::rotate to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
7317
        }
7318
7319
        final StringBuilder builder = new StringBuilder(strLen);
7320 2 1. rotate : removed negation → KILLED
2. rotate : Replaced integer modulus with multiplication → KILLED
        final int offset = - (shift % strLen);
7321
        builder.append(substring(str, offset));
7322
        builder.append(substring(str, 0, offset));
7323 1 1. rotate : mutated return of Object value for org/apache/commons/lang3/StringUtils::rotate to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return builder.toString();
7324
    }
7325
7326
    // Reversing
7327
    //-----------------------------------------------------------------------
7328
    /**
7329
     * <p>Reverses a String as per {@link StringBuilder#reverse()}.</p>
7330
     *
7331
     * <p>A {@code null} String returns {@code null}.</p>
7332
     *
7333
     * <pre>
7334
     * StringUtils.reverse(null)  = null
7335
     * StringUtils.reverse("")    = ""
7336
     * StringUtils.reverse("bat") = "tab"
7337
     * </pre>
7338
     *
7339
     * @param str  the String to reverse, may be null
7340
     * @return the reversed String, {@code null} if null String input
7341
     */
7342
    public static String reverse(final String str) {
7343 1 1. reverse : negated conditional → KILLED
        if (str == null) {
7344 1 1. reverse : mutated return of Object value for org/apache/commons/lang3/StringUtils::reverse to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
7345
        }
7346 1 1. reverse : mutated return of Object value for org/apache/commons/lang3/StringUtils::reverse to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new StringBuilder(str).reverse().toString();
7347
    }
7348
7349
    /**
7350
     * <p>Reverses a String that is delimited by a specific character.</p>
7351
     *
7352
     * <p>The Strings between the delimiters are not reversed.
7353
     * Thus java.lang.String becomes String.lang.java (if the delimiter
7354
     * is {@code '.'}).</p>
7355
     *
7356
     * <pre>
7357
     * StringUtils.reverseDelimited(null, *)      = null
7358
     * StringUtils.reverseDelimited("", *)        = ""
7359
     * StringUtils.reverseDelimited("a.b.c", 'x') = "a.b.c"
7360
     * StringUtils.reverseDelimited("a.b.c", ".") = "c.b.a"
7361
     * </pre>
7362
     *
7363
     * @param str  the String to reverse, may be null
7364
     * @param separatorChar  the separator character to use
7365
     * @return the reversed String, {@code null} if null String input
7366
     * @since 2.0
7367
     */
7368
    public static String reverseDelimited(final String str, final char separatorChar) {
7369 1 1. reverseDelimited : negated conditional → KILLED
        if (str == null) {
7370 1 1. reverseDelimited : mutated return of Object value for org/apache/commons/lang3/StringUtils::reverseDelimited to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
7371
        }
7372
        // could implement manually, but simple way is to reuse other,
7373
        // probably slower, methods.
7374
        final String[] strs = split(str, separatorChar);
7375 1 1. reverseDelimited : removed call to org/apache/commons/lang3/ArrayUtils::reverse → KILLED
        ArrayUtils.reverse(strs);
7376 1 1. reverseDelimited : mutated return of Object value for org/apache/commons/lang3/StringUtils::reverseDelimited to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return join(strs, separatorChar);
7377
    }
7378
7379
    // Abbreviating
7380
    //-----------------------------------------------------------------------
7381
    /**
7382
     * <p>Abbreviates a String using ellipses. This will turn
7383
     * "Now is the time for all good men" into "Now is the time for..."</p>
7384
     *
7385
     * <p>Specifically:</p>
7386
     * <ul>
7387
     *   <li>If the number of characters in {@code str} is less than or equal to 
7388
     *       {@code maxWidth}, return {@code str}.</li>
7389
     *   <li>Else abbreviate it to {@code (substring(str, 0, max-3) + "...")}.</li>
7390
     *   <li>If {@code maxWidth} is less than {@code 4}, throw an
7391
     *       {@code IllegalArgumentException}.</li>
7392
     *   <li>In no case will it return a String of length greater than
7393
     *       {@code maxWidth}.</li>
7394
     * </ul>
7395
     *
7396
     * <pre>
7397
     * StringUtils.abbreviate(null, *)      = null
7398
     * StringUtils.abbreviate("", 4)        = ""
7399
     * StringUtils.abbreviate("abcdefg", 6) = "abc..."
7400
     * StringUtils.abbreviate("abcdefg", 7) = "abcdefg"
7401
     * StringUtils.abbreviate("abcdefg", 8) = "abcdefg"
7402
     * StringUtils.abbreviate("abcdefg", 4) = "a..."
7403
     * StringUtils.abbreviate("abcdefg", 3) = IllegalArgumentException
7404
     * </pre>
7405
     *
7406
     * @param str  the String to check, may be null
7407
     * @param maxWidth  maximum length of result String, must be at least 4
7408
     * @return abbreviated String, {@code null} if null String input
7409
     * @throws IllegalArgumentException if the width is too small
7410
     * @since 2.0
7411
     */
7412
    public static String abbreviate(final String str, final int maxWidth) {
7413
        final String defaultAbbrevMarker = "...";
7414 1 1. abbreviate : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return abbreviate(str, defaultAbbrevMarker, 0, maxWidth);
7415
    }
7416
7417
    /**
7418
     * <p>Abbreviates a String using ellipses. This will turn
7419
     * "Now is the time for all good men" into "...is the time for..."</p>
7420
     *
7421
     * <p>Works like {@code abbreviate(String, int)}, but allows you to specify
7422
     * a "left edge" offset.  Note that this left edge is not necessarily going to
7423
     * be the leftmost character in the result, or the first character following the
7424
     * ellipses, but it will appear somewhere in the result.
7425
     *
7426
     * <p>In no case will it return a String of length greater than
7427
     * {@code maxWidth}.</p>
7428
     *
7429
     * <pre>
7430
     * StringUtils.abbreviate(null, *, *)                = null
7431
     * StringUtils.abbreviate("", 0, 4)                  = ""
7432
     * StringUtils.abbreviate("abcdefghijklmno", -1, 10) = "abcdefg..."
7433
     * StringUtils.abbreviate("abcdefghijklmno", 0, 10)  = "abcdefg..."
7434
     * StringUtils.abbreviate("abcdefghijklmno", 1, 10)  = "abcdefg..."
7435
     * StringUtils.abbreviate("abcdefghijklmno", 4, 10)  = "abcdefg..."
7436
     * StringUtils.abbreviate("abcdefghijklmno", 5, 10)  = "...fghi..."
7437
     * StringUtils.abbreviate("abcdefghijklmno", 6, 10)  = "...ghij..."
7438
     * StringUtils.abbreviate("abcdefghijklmno", 8, 10)  = "...ijklmno"
7439
     * StringUtils.abbreviate("abcdefghijklmno", 10, 10) = "...ijklmno"
7440
     * StringUtils.abbreviate("abcdefghijklmno", 12, 10) = "...ijklmno"
7441
     * StringUtils.abbreviate("abcdefghij", 0, 3)        = IllegalArgumentException
7442
     * StringUtils.abbreviate("abcdefghij", 5, 6)        = IllegalArgumentException
7443
     * </pre>
7444
     *
7445
     * @param str  the String to check, may be null
7446
     * @param offset  left edge of source String
7447
     * @param maxWidth  maximum length of result String, must be at least 4
7448
     * @return abbreviated String, {@code null} if null String input
7449
     * @throws IllegalArgumentException if the width is too small
7450
     * @since 2.0
7451
     */
7452
    public static String abbreviate(final String str, final int offset, final int maxWidth) {
7453
        final String defaultAbbrevMarker = "...";
7454 1 1. abbreviate : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return abbreviate(str, defaultAbbrevMarker, offset, maxWidth);
7455
    }
7456
7457
    /**
7458
     * <p>Abbreviates a String using another given String as replacement marker. This will turn
7459
     * "Now is the time for all good men" into "Now is the time for..." if "..." was defined
7460
     * as the replacement marker.</p>
7461
     *
7462
     * <p>Specifically:</p>
7463
     * <ul>
7464
     *   <li>If the number of characters in {@code str} is less than or equal to 
7465
     *       {@code maxWidth}, return {@code str}.</li>
7466
     *   <li>Else abbreviate it to {@code (substring(str, 0, max-abbrevMarker.length) + abbrevMarker)}.</li>
7467
     *   <li>If {@code maxWidth} is less than {@code abbrevMarker.length + 1}, throw an
7468
     *       {@code IllegalArgumentException}.</li>
7469
     *   <li>In no case will it return a String of length greater than
7470
     *       {@code maxWidth}.</li>
7471
     * </ul>
7472
     *
7473
     * <pre>
7474
     * StringUtils.abbreviate(null, "...", *)      = null
7475
     * StringUtils.abbreviate("abcdefg", null, *)  = "abcdefg"
7476
     * StringUtils.abbreviate("", "...", 4)        = ""
7477
     * StringUtils.abbreviate("abcdefg", ".", 5)   = "abcd."
7478
     * StringUtils.abbreviate("abcdefg", ".", 7)   = "abcdefg"
7479
     * StringUtils.abbreviate("abcdefg", ".", 8)   = "abcdefg"
7480
     * StringUtils.abbreviate("abcdefg", "..", 4)  = "ab.."
7481
     * StringUtils.abbreviate("abcdefg", "..", 3)  = "a.."
7482
     * StringUtils.abbreviate("abcdefg", "..", 2)  = IllegalArgumentException
7483
     * StringUtils.abbreviate("abcdefg", "...", 3) = IllegalArgumentException
7484
     * </pre>
7485
     *
7486
     * @param str  the String to check, may be null
7487
     * @param abbrevMarker  the String used as replacement marker
7488
     * @param maxWidth  maximum length of result String, must be at least {@code abbrevMarker.length + 1}
7489
     * @return abbreviated String, {@code null} if null String input
7490
     * @throws IllegalArgumentException if the width is too small
7491
     * @since 3.5
7492
     */
7493
    public static String abbreviate(final String str, final String abbrevMarker, final int maxWidth) {
7494 1 1. abbreviate : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return abbreviate(str, abbrevMarker, 0, maxWidth);
7495
    }
7496
7497
    /**
7498
     * <p>Abbreviates a String using a given replacement marker. This will turn
7499
     * "Now is the time for all good men" into "...is the time for..." if "..." was defined
7500
     * as the replacement marker.</p>
7501
     *
7502
     * <p>Works like {@code abbreviate(String, String, int)}, but allows you to specify
7503
     * a "left edge" offset.  Note that this left edge is not necessarily going to
7504
     * be the leftmost character in the result, or the first character following the
7505
     * replacement marker, but it will appear somewhere in the result.
7506
     *
7507
     * <p>In no case will it return a String of length greater than {@code maxWidth}.</p>
7508
     *
7509
     * <pre>
7510
     * StringUtils.abbreviate(null, null, *, *)                 = null
7511
     * StringUtils.abbreviate("abcdefghijklmno", null, *, *)    = "abcdefghijklmno"
7512
     * StringUtils.abbreviate("", "...", 0, 4)                  = ""
7513
     * StringUtils.abbreviate("abcdefghijklmno", "---", -1, 10) = "abcdefg---"
7514
     * StringUtils.abbreviate("abcdefghijklmno", ",", 0, 10)    = "abcdefghi,"
7515
     * StringUtils.abbreviate("abcdefghijklmno", ",", 1, 10)    = "abcdefghi,"
7516
     * StringUtils.abbreviate("abcdefghijklmno", ",", 2, 10)    = "abcdefghi,"
7517
     * StringUtils.abbreviate("abcdefghijklmno", "::", 4, 10)   = "::efghij::"
7518
     * StringUtils.abbreviate("abcdefghijklmno", "...", 6, 10)  = "...ghij..."
7519
     * StringUtils.abbreviate("abcdefghijklmno", "*", 9, 10)    = "*ghijklmno"
7520
     * StringUtils.abbreviate("abcdefghijklmno", "'", 10, 10)   = "'ghijklmno"
7521
     * StringUtils.abbreviate("abcdefghijklmno", "!", 12, 10)   = "!ghijklmno"
7522
     * StringUtils.abbreviate("abcdefghij", "abra", 0, 4)       = IllegalArgumentException
7523
     * StringUtils.abbreviate("abcdefghij", "...", 5, 6)        = IllegalArgumentException
7524
     * </pre>
7525
     *
7526
     * @param str  the String to check, may be null
7527
     * @param abbrevMarker  the String used as replacement marker
7528
     * @param offset  left edge of source String
7529
     * @param maxWidth  maximum length of result String, must be at least 4
7530
     * @return abbreviated String, {@code null} if null String input
7531
     * @throws IllegalArgumentException if the width is too small
7532
     * @since 3.5
7533
     */
7534
    public static String abbreviate(final String str, final String abbrevMarker, int offset, final int maxWidth) {
7535 2 1. abbreviate : negated conditional → KILLED
2. abbreviate : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(abbrevMarker)) {
7536 1 1. abbreviate : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
7537
        }
7538
7539
        final int abbrevMarkerLength = abbrevMarker.length();
7540 1 1. abbreviate : Replaced integer addition with subtraction → KILLED
        final int minAbbrevWidth = abbrevMarkerLength + 1;
7541 2 1. abbreviate : Replaced integer addition with subtraction → SURVIVED
2. abbreviate : Replaced integer addition with subtraction → SURVIVED
        final int minAbbrevWidthOffset = abbrevMarkerLength + abbrevMarkerLength + 1;
7542
7543 2 1. abbreviate : changed conditional boundary → KILLED
2. abbreviate : negated conditional → KILLED
        if (maxWidth < minAbbrevWidth) {
7544
            throw new IllegalArgumentException(String.format("Minimum abbreviation width is %d", minAbbrevWidth));
7545
        }
7546 2 1. abbreviate : changed conditional boundary → KILLED
2. abbreviate : negated conditional → KILLED
        if (str.length() <= maxWidth) {
7547 1 1. abbreviate : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
7548
        }
7549 2 1. abbreviate : changed conditional boundary → SURVIVED
2. abbreviate : negated conditional → KILLED
        if (offset > str.length()) {
7550
            offset = str.length();
7551
        }
7552 4 1. abbreviate : changed conditional boundary → SURVIVED
2. abbreviate : Replaced integer subtraction with addition → SURVIVED
3. abbreviate : Replaced integer subtraction with addition → KILLED
4. abbreviate : negated conditional → KILLED
        if (str.length() - offset < maxWidth - abbrevMarkerLength) {
7553 2 1. abbreviate : Replaced integer subtraction with addition → SURVIVED
2. abbreviate : Replaced integer subtraction with addition → KILLED
            offset = str.length() - (maxWidth - abbrevMarkerLength);
7554
        }
7555 3 1. abbreviate : changed conditional boundary → KILLED
2. abbreviate : Replaced integer addition with subtraction → KILLED
3. abbreviate : negated conditional → KILLED
        if (offset <= abbrevMarkerLength+1) {
7556 2 1. abbreviate : Replaced integer subtraction with addition → KILLED
2. abbreviate : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str.substring(0, maxWidth - abbrevMarkerLength) + abbrevMarker;
7557
        }
7558 2 1. abbreviate : changed conditional boundary → SURVIVED
2. abbreviate : negated conditional → KILLED
        if (maxWidth < minAbbrevWidthOffset) {
7559
            throw new IllegalArgumentException(String.format("Minimum abbreviation width with offset is %d", minAbbrevWidthOffset));
7560
        }
7561 4 1. abbreviate : changed conditional boundary → SURVIVED
2. abbreviate : Replaced integer addition with subtraction → SURVIVED
3. abbreviate : Replaced integer subtraction with addition → KILLED
4. abbreviate : negated conditional → KILLED
        if (offset + maxWidth - abbrevMarkerLength < str.length()) {
7562 2 1. abbreviate : Replaced integer subtraction with addition → KILLED
2. abbreviate : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return abbrevMarker + abbreviate(str.substring(offset), abbrevMarker, maxWidth - abbrevMarkerLength);
7563
        }
7564 3 1. abbreviate : Replaced integer subtraction with addition → KILLED
2. abbreviate : Replaced integer subtraction with addition → KILLED
3. abbreviate : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return abbrevMarker + str.substring(str.length() - (maxWidth - abbrevMarkerLength));
7565
    }
7566
7567
    /**
7568
     * <p>Abbreviates a String to the length passed, replacing the middle characters with the supplied
7569
     * replacement String.</p>
7570
     *
7571
     * <p>This abbreviation only occurs if the following criteria is met:</p>
7572
     * <ul>
7573
     * <li>Neither the String for abbreviation nor the replacement String are null or empty </li>
7574
     * <li>The length to truncate to is less than the length of the supplied String</li>
7575
     * <li>The length to truncate to is greater than 0</li>
7576
     * <li>The abbreviated String will have enough room for the length supplied replacement String
7577
     * and the first and last characters of the supplied String for abbreviation</li>
7578
     * </ul>
7579
     * <p>Otherwise, the returned String will be the same as the supplied String for abbreviation.
7580
     * </p>
7581
     *
7582
     * <pre>
7583
     * StringUtils.abbreviateMiddle(null, null, 0)      = null
7584
     * StringUtils.abbreviateMiddle("abc", null, 0)      = "abc"
7585
     * StringUtils.abbreviateMiddle("abc", ".", 0)      = "abc"
7586
     * StringUtils.abbreviateMiddle("abc", ".", 3)      = "abc"
7587
     * StringUtils.abbreviateMiddle("abcdef", ".", 4)     = "ab.f"
7588
     * </pre>
7589
     *
7590
     * @param str  the String to abbreviate, may be null
7591
     * @param middle the String to replace the middle characters with, may be null
7592
     * @param length the length to abbreviate {@code str} to.
7593
     * @return the abbreviated String if the above criteria is met, or the original String supplied for abbreviation.
7594
     * @since 2.5
7595
     */
7596
    public static String abbreviateMiddle(final String str, final String middle, final int length) {
7597 2 1. abbreviateMiddle : negated conditional → KILLED
2. abbreviateMiddle : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(middle)) {
7598 1 1. abbreviateMiddle : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviateMiddle to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
7599
        }
7600
7601 5 1. abbreviateMiddle : changed conditional boundary → KILLED
2. abbreviateMiddle : changed conditional boundary → KILLED
3. abbreviateMiddle : Replaced integer addition with subtraction → KILLED
4. abbreviateMiddle : negated conditional → KILLED
5. abbreviateMiddle : negated conditional → KILLED
        if (length >= str.length() || length < middle.length()+2) {
7602 1 1. abbreviateMiddle : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviateMiddle to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
7603
        }
7604
7605 1 1. abbreviateMiddle : Replaced integer subtraction with addition → KILLED
        final int targetSting = length-middle.length();
7606 3 1. abbreviateMiddle : Replaced integer division with multiplication → KILLED
2. abbreviateMiddle : Replaced integer modulus with multiplication → KILLED
3. abbreviateMiddle : Replaced integer addition with subtraction → KILLED
        final int startOffset = targetSting/2+targetSting%2;
7607 2 1. abbreviateMiddle : Replaced integer division with multiplication → KILLED
2. abbreviateMiddle : Replaced integer subtraction with addition → KILLED
        final int endOffset = str.length()-targetSting/2;
7608
7609
        final StringBuilder builder = new StringBuilder(length);
7610
        builder.append(str.substring(0,startOffset));
7611
        builder.append(middle);
7612
        builder.append(str.substring(endOffset));
7613
7614 1 1. abbreviateMiddle : mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviateMiddle to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return builder.toString();
7615
    }
7616
7617
    // Difference
7618
    //-----------------------------------------------------------------------
7619
    /**
7620
     * <p>Compares two Strings, and returns the portion where they differ.
7621
     * More precisely, return the remainder of the second String,
7622
     * starting from where it's different from the first. This means that
7623
     * the difference between "abc" and "ab" is the empty String and not "c". </p>
7624
     *
7625
     * <p>For example,
7626
     * {@code difference("i am a machine", "i am a robot") -> "robot"}.</p>
7627
     *
7628
     * <pre>
7629
     * StringUtils.difference(null, null) = null
7630
     * StringUtils.difference("", "") = ""
7631
     * StringUtils.difference("", "abc") = "abc"
7632
     * StringUtils.difference("abc", "") = ""
7633
     * StringUtils.difference("abc", "abc") = ""
7634
     * StringUtils.difference("abc", "ab") = ""
7635
     * StringUtils.difference("ab", "abxyz") = "xyz"
7636
     * StringUtils.difference("abcde", "abxyz") = "xyz"
7637
     * StringUtils.difference("abcde", "xyz") = "xyz"
7638
     * </pre>
7639
     *
7640
     * @param str1  the first String, may be null
7641
     * @param str2  the second String, may be null
7642
     * @return the portion of str2 where it differs from str1; returns the
7643
     * empty String if they are equal
7644
     * @see #indexOfDifference(CharSequence,CharSequence)
7645
     * @since 2.0
7646
     */
7647
    public static String difference(final String str1, final String str2) {
7648 1 1. difference : negated conditional → KILLED
        if (str1 == null) {
7649 1 1. difference : mutated return of Object value for org/apache/commons/lang3/StringUtils::difference to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str2;
7650
        }
7651 1 1. difference : negated conditional → KILLED
        if (str2 == null) {
7652 1 1. difference : mutated return of Object value for org/apache/commons/lang3/StringUtils::difference to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str1;
7653
        }
7654
        final int at = indexOfDifference(str1, str2);
7655 1 1. difference : negated conditional → KILLED
        if (at == INDEX_NOT_FOUND) {
7656 1 1. difference : mutated return of Object value for org/apache/commons/lang3/StringUtils::difference to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
7657
        }
7658 1 1. difference : mutated return of Object value for org/apache/commons/lang3/StringUtils::difference to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str2.substring(at);
7659
    }
7660
7661
    /**
7662
     * <p>Compares two CharSequences, and returns the index at which the
7663
     * CharSequences begin to differ.</p>
7664
     *
7665
     * <p>For example,
7666
     * {@code indexOfDifference("i am a machine", "i am a robot") -> 7}</p>
7667
     *
7668
     * <pre>
7669
     * StringUtils.indexOfDifference(null, null) = -1
7670
     * StringUtils.indexOfDifference("", "") = -1
7671
     * StringUtils.indexOfDifference("", "abc") = 0
7672
     * StringUtils.indexOfDifference("abc", "") = 0
7673
     * StringUtils.indexOfDifference("abc", "abc") = -1
7674
     * StringUtils.indexOfDifference("ab", "abxyz") = 2
7675
     * StringUtils.indexOfDifference("abcde", "abxyz") = 2
7676
     * StringUtils.indexOfDifference("abcde", "xyz") = 0
7677
     * </pre>
7678
     *
7679
     * @param cs1  the first CharSequence, may be null
7680
     * @param cs2  the second CharSequence, may be null
7681
     * @return the index where cs1 and cs2 begin to differ; -1 if they are equal
7682
     * @since 2.0
7683
     * @since 3.0 Changed signature from indexOfDifference(String, String) to
7684
     * indexOfDifference(CharSequence, CharSequence)
7685
     */
7686
    public static int indexOfDifference(final CharSequence cs1, final CharSequence cs2) {
7687 1 1. indexOfDifference : negated conditional → KILLED
        if (cs1 == cs2) {
7688 1 1. indexOfDifference : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
7689
        }
7690 2 1. indexOfDifference : negated conditional → KILLED
2. indexOfDifference : negated conditional → KILLED
        if (cs1 == null || cs2 == null) {
7691 1 1. indexOfDifference : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return 0;
7692
        }
7693
        int i;
7694 5 1. indexOfDifference : changed conditional boundary → KILLED
2. indexOfDifference : changed conditional boundary → KILLED
3. indexOfDifference : Changed increment from 1 to -1 → KILLED
4. indexOfDifference : negated conditional → KILLED
5. indexOfDifference : negated conditional → KILLED
        for (i = 0; i < cs1.length() && i < cs2.length(); ++i) {
7695 1 1. indexOfDifference : negated conditional → KILLED
            if (cs1.charAt(i) != cs2.charAt(i)) {
7696
                break;
7697
            }
7698
        }
7699 4 1. indexOfDifference : changed conditional boundary → SURVIVED
2. indexOfDifference : changed conditional boundary → SURVIVED
3. indexOfDifference : negated conditional → KILLED
4. indexOfDifference : negated conditional → KILLED
        if (i < cs2.length() || i < cs1.length()) {
7700 1 1. indexOfDifference : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return i;
7701
        }
7702 1 1. indexOfDifference : replaced return of integer sized value with (x == 0 ? 1 : 0) → NO_COVERAGE
        return INDEX_NOT_FOUND;
7703
    }
7704
7705
    /**
7706
     * <p>Compares all CharSequences in an array and returns the index at which the
7707
     * CharSequences begin to differ.</p>
7708
     *
7709
     * <p>For example,
7710
     * <code>indexOfDifference(new String[] {"i am a machine", "i am a robot"}) -&gt; 7</code></p>
7711
     *
7712
     * <pre>
7713
     * StringUtils.indexOfDifference(null) = -1
7714
     * StringUtils.indexOfDifference(new String[] {}) = -1
7715
     * StringUtils.indexOfDifference(new String[] {"abc"}) = -1
7716
     * StringUtils.indexOfDifference(new String[] {null, null}) = -1
7717
     * StringUtils.indexOfDifference(new String[] {"", ""}) = -1
7718
     * StringUtils.indexOfDifference(new String[] {"", null}) = 0
7719
     * StringUtils.indexOfDifference(new String[] {"abc", null, null}) = 0
7720
     * StringUtils.indexOfDifference(new String[] {null, null, "abc"}) = 0
7721
     * StringUtils.indexOfDifference(new String[] {"", "abc"}) = 0
7722
     * StringUtils.indexOfDifference(new String[] {"abc", ""}) = 0
7723
     * StringUtils.indexOfDifference(new String[] {"abc", "abc"}) = -1
7724
     * StringUtils.indexOfDifference(new String[] {"abc", "a"}) = 1
7725
     * StringUtils.indexOfDifference(new String[] {"ab", "abxyz"}) = 2
7726
     * StringUtils.indexOfDifference(new String[] {"abcde", "abxyz"}) = 2
7727
     * StringUtils.indexOfDifference(new String[] {"abcde", "xyz"}) = 0
7728
     * StringUtils.indexOfDifference(new String[] {"xyz", "abcde"}) = 0
7729
     * StringUtils.indexOfDifference(new String[] {"i am a machine", "i am a robot"}) = 7
7730
     * </pre>
7731
     *
7732
     * @param css  array of CharSequences, entries may be null
7733
     * @return the index where the strings begin to differ; -1 if they are all equal
7734
     * @since 2.4
7735
     * @since 3.0 Changed signature from indexOfDifference(String...) to indexOfDifference(CharSequence...)
7736
     */
7737
    public static int indexOfDifference(final CharSequence... css) {
7738 3 1. indexOfDifference : changed conditional boundary → SURVIVED
2. indexOfDifference : negated conditional → KILLED
3. indexOfDifference : negated conditional → KILLED
        if (css == null || css.length <= 1) {
7739 1 1. indexOfDifference : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
7740
        }
7741
        boolean anyStringNull = false;
7742
        boolean allStringsNull = true;
7743
        final int arrayLen = css.length;
7744
        int shortestStrLen = Integer.MAX_VALUE;
7745
        int longestStrLen = 0;
7746
7747
        // find the min and max string lengths; this avoids checking to make
7748
        // sure we are not exceeding the length of the string each time through
7749
        // the bottom loop.
7750 3 1. indexOfDifference : changed conditional boundary → KILLED
2. indexOfDifference : Changed increment from 1 to -1 → KILLED
3. indexOfDifference : negated conditional → KILLED
        for (CharSequence cs : css) {
7751 1 1. indexOfDifference : negated conditional → KILLED
            if (cs == null) {
7752
                anyStringNull = true;
7753
                shortestStrLen = 0;
7754
            } else {
7755
                allStringsNull = false;
7756
                shortestStrLen = Math.min(cs.length(), shortestStrLen);
7757
                longestStrLen = Math.max(cs.length(), longestStrLen);
7758
            }
7759
        }
7760
7761
        // handle lists containing all nulls or all empty strings
7762 3 1. indexOfDifference : negated conditional → KILLED
2. indexOfDifference : negated conditional → KILLED
3. indexOfDifference : negated conditional → KILLED
        if (allStringsNull || longestStrLen == 0 && !anyStringNull) {
7763 1 1. indexOfDifference : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return INDEX_NOT_FOUND;
7764
        }
7765
7766
        // handle lists containing some nulls or some empty strings
7767 1 1. indexOfDifference : negated conditional → KILLED
        if (shortestStrLen == 0) {
7768 1 1. indexOfDifference : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return 0;
7769
        }
7770
7771
        // find the position with the first difference across all strings
7772
        int firstDiff = -1;
7773 3 1. indexOfDifference : changed conditional boundary → KILLED
2. indexOfDifference : Changed increment from 1 to -1 → KILLED
3. indexOfDifference : negated conditional → KILLED
        for (int stringPos = 0; stringPos < shortestStrLen; stringPos++) {
7774
            final char comparisonChar = css[0].charAt(stringPos);
7775 3 1. indexOfDifference : changed conditional boundary → KILLED
2. indexOfDifference : Changed increment from 1 to -1 → KILLED
3. indexOfDifference : negated conditional → KILLED
            for (int arrayPos = 1; arrayPos < arrayLen; arrayPos++) {
7776 1 1. indexOfDifference : negated conditional → KILLED
                if (css[arrayPos].charAt(stringPos) != comparisonChar) {
7777
                    firstDiff = stringPos;
7778
                    break;
7779
                }
7780
            }
7781 1 1. indexOfDifference : negated conditional → KILLED
            if (firstDiff != -1) {
7782
                break;
7783
            }
7784
        }
7785
7786 2 1. indexOfDifference : negated conditional → KILLED
2. indexOfDifference : negated conditional → KILLED
        if (firstDiff == -1 && shortestStrLen != longestStrLen) {
7787
            // we compared all of the characters up to the length of the
7788
            // shortest string and didn't find a match, but the string lengths
7789
            // vary, so return the length of the shortest string.
7790 1 1. indexOfDifference : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return shortestStrLen;
7791
        }
7792 1 1. indexOfDifference : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return firstDiff;
7793
    }
7794
7795
    /**
7796
     * <p>Compares all Strings in an array and returns the initial sequence of
7797
     * characters that is common to all of them.</p>
7798
     *
7799
     * <p>For example,
7800
     * <code>getCommonPrefix(new String[] {"i am a machine", "i am a robot"}) -&gt; "i am a "</code></p>
7801
     *
7802
     * <pre>
7803
     * StringUtils.getCommonPrefix(null) = ""
7804
     * StringUtils.getCommonPrefix(new String[] {}) = ""
7805
     * StringUtils.getCommonPrefix(new String[] {"abc"}) = "abc"
7806
     * StringUtils.getCommonPrefix(new String[] {null, null}) = ""
7807
     * StringUtils.getCommonPrefix(new String[] {"", ""}) = ""
7808
     * StringUtils.getCommonPrefix(new String[] {"", null}) = ""
7809
     * StringUtils.getCommonPrefix(new String[] {"abc", null, null}) = ""
7810
     * StringUtils.getCommonPrefix(new String[] {null, null, "abc"}) = ""
7811
     * StringUtils.getCommonPrefix(new String[] {"", "abc"}) = ""
7812
     * StringUtils.getCommonPrefix(new String[] {"abc", ""}) = ""
7813
     * StringUtils.getCommonPrefix(new String[] {"abc", "abc"}) = "abc"
7814
     * StringUtils.getCommonPrefix(new String[] {"abc", "a"}) = "a"
7815
     * StringUtils.getCommonPrefix(new String[] {"ab", "abxyz"}) = "ab"
7816
     * StringUtils.getCommonPrefix(new String[] {"abcde", "abxyz"}) = "ab"
7817
     * StringUtils.getCommonPrefix(new String[] {"abcde", "xyz"}) = ""
7818
     * StringUtils.getCommonPrefix(new String[] {"xyz", "abcde"}) = ""
7819
     * StringUtils.getCommonPrefix(new String[] {"i am a machine", "i am a robot"}) = "i am a "
7820
     * </pre>
7821
     *
7822
     * @param strs  array of String objects, entries may be null
7823
     * @return the initial sequence of characters that are common to all Strings
7824
     * in the array; empty String if the array is null, the elements are all null
7825
     * or if there is no common prefix.
7826
     * @since 2.4
7827
     */
7828
    public static String getCommonPrefix(final String... strs) {
7829 2 1. getCommonPrefix : negated conditional → KILLED
2. getCommonPrefix : negated conditional → KILLED
        if (strs == null || strs.length == 0) {
7830 1 1. getCommonPrefix : mutated return of Object value for org/apache/commons/lang3/StringUtils::getCommonPrefix to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
7831
        }
7832
        final int smallestIndexOfDiff = indexOfDifference(strs);
7833 1 1. getCommonPrefix : negated conditional → KILLED
        if (smallestIndexOfDiff == INDEX_NOT_FOUND) {
7834
            // all strings were identical
7835 1 1. getCommonPrefix : negated conditional → KILLED
            if (strs[0] == null) {
7836 1 1. getCommonPrefix : mutated return of Object value for org/apache/commons/lang3/StringUtils::getCommonPrefix to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return EMPTY;
7837
            }
7838 1 1. getCommonPrefix : mutated return of Object value for org/apache/commons/lang3/StringUtils::getCommonPrefix to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return strs[0];
7839 1 1. getCommonPrefix : negated conditional → KILLED
        } else if (smallestIndexOfDiff == 0) {
7840
            // there were no common initial characters
7841 1 1. getCommonPrefix : mutated return of Object value for org/apache/commons/lang3/StringUtils::getCommonPrefix to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
7842
        } else {
7843
            // we found a common initial character sequence
7844 1 1. getCommonPrefix : mutated return of Object value for org/apache/commons/lang3/StringUtils::getCommonPrefix to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return strs[0].substring(0, smallestIndexOfDiff);
7845
        }
7846
    }
7847
7848
    // Misc
7849
    //-----------------------------------------------------------------------
7850
    /**
7851
     * <p>Find the Levenshtein distance between two Strings.</p>
7852
     *
7853
     * <p>This is the number of changes needed to change one String into
7854
     * another, where each change is a single character modification (deletion,
7855
     * insertion or substitution).</p>
7856
     *
7857
     * <p>The implementation uses a single-dimensional array of length s.length() + 1. See 
7858
     * <a href="http://blog.softwx.net/2014/12/optimizing-levenshtein-algorithm-in-c.html">
7859
     * http://blog.softwx.net/2014/12/optimizing-levenshtein-algorithm-in-c.html</a> for details.</p>
7860
     *
7861
     * <pre>
7862
     * StringUtils.getLevenshteinDistance(null, *)             = IllegalArgumentException
7863
     * StringUtils.getLevenshteinDistance(*, null)             = IllegalArgumentException
7864
     * StringUtils.getLevenshteinDistance("","")               = 0
7865
     * StringUtils.getLevenshteinDistance("","a")              = 1
7866
     * StringUtils.getLevenshteinDistance("aaapppp", "")       = 7
7867
     * StringUtils.getLevenshteinDistance("frog", "fog")       = 1
7868
     * StringUtils.getLevenshteinDistance("fly", "ant")        = 3
7869
     * StringUtils.getLevenshteinDistance("elephant", "hippo") = 7
7870
     * StringUtils.getLevenshteinDistance("hippo", "elephant") = 7
7871
     * StringUtils.getLevenshteinDistance("hippo", "zzzzzzzz") = 8
7872
     * StringUtils.getLevenshteinDistance("hello", "hallo")    = 1
7873
     * </pre>
7874
     *
7875
     * @param s  the first String, must not be null
7876
     * @param t  the second String, must not be null
7877
     * @return result distance
7878
     * @throws IllegalArgumentException if either String input {@code null}
7879
     * @since 3.0 Changed signature from getLevenshteinDistance(String, String) to
7880
     * getLevenshteinDistance(CharSequence, CharSequence)
7881
     */
7882
    public static int getLevenshteinDistance(CharSequence s, CharSequence t) {
7883 2 1. getLevenshteinDistance : negated conditional → KILLED
2. getLevenshteinDistance : negated conditional → KILLED
        if (s == null || t == null) {
7884
            throw new IllegalArgumentException("Strings must not be null");
7885
        }
7886
7887
        int n = s.length();
7888
        int m = t.length();
7889
7890 1 1. getLevenshteinDistance : negated conditional → KILLED
        if (n == 0) {
7891 1 1. getLevenshteinDistance : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return m;
7892 1 1. getLevenshteinDistance : negated conditional → KILLED
        } else if (m == 0) {
7893 1 1. getLevenshteinDistance : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return n;
7894
        }
7895
7896 2 1. getLevenshteinDistance : changed conditional boundary → SURVIVED
2. getLevenshteinDistance : negated conditional → SURVIVED
        if (n > m) {
7897
            // swap the input strings to consume less memory
7898
            final CharSequence tmp = s;
7899
            s = t;
7900
            t = tmp;
7901
            n = m;
7902
            m = t.length();
7903
        }
7904
7905 1 1. getLevenshteinDistance : Replaced integer addition with subtraction → KILLED
        final int p[] = new int[n + 1];
7906
        // indexes into strings s and t
7907
        int i; // iterates through s
7908
        int j; // iterates through t
7909
        int upper_left;
7910
        int upper;
7911
7912
        char t_j; // jth character of t
7913
        int cost;
7914
7915 3 1. getLevenshteinDistance : changed conditional boundary → SURVIVED
2. getLevenshteinDistance : negated conditional → SURVIVED
3. getLevenshteinDistance : Changed increment from 1 to -1 → KILLED
        for (i = 0; i <= n; i++) {
7916
            p[i] = i;
7917
        }
7918
7919 3 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : Changed increment from 1 to -1 → KILLED
3. getLevenshteinDistance : negated conditional → KILLED
        for (j = 1; j <= m; j++) {
7920
            upper_left = p[0];
7921 1 1. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
            t_j = t.charAt(j - 1);
7922
            p[0] = j;
7923
7924 3 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : Changed increment from 1 to -1 → KILLED
3. getLevenshteinDistance : negated conditional → KILLED
            for (i = 1; i <= n; i++) {
7925
                upper = p[i];
7926 2 1. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
2. getLevenshteinDistance : negated conditional → KILLED
                cost = s.charAt(i - 1) == t_j ? 0 : 1;
7927
                // minimum of cell to the left+1, to the top+1, diagonally left and up +cost
7928 4 1. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
2. getLevenshteinDistance : Replaced integer addition with subtraction → KILLED
3. getLevenshteinDistance : Replaced integer addition with subtraction → KILLED
4. getLevenshteinDistance : Replaced integer addition with subtraction → KILLED
                p[i] = Math.min(Math.min(p[i - 1] + 1, p[i] + 1), upper_left + cost);
7929
                upper_left = upper;
7930
            }
7931
        }
7932
7933 1 1. getLevenshteinDistance : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return p[n];
7934
    }
7935
7936
    /**
7937
     * <p>Find the Levenshtein distance between two Strings if it's less than or equal to a given
7938
     * threshold.</p>
7939
     *
7940
     * <p>This is the number of changes needed to change one String into
7941
     * another, where each change is a single character modification (deletion,
7942
     * insertion or substitution).</p>
7943
     *
7944
     * <p>This implementation follows from Algorithms on Strings, Trees and Sequences by Dan Gusfield
7945
     * and Chas Emerick's implementation of the Levenshtein distance algorithm from
7946
     * <a href="http://www.merriampark.com/ld.htm">http://www.merriampark.com/ld.htm</a></p>
7947
     *
7948
     * <pre>
7949
     * StringUtils.getLevenshteinDistance(null, *, *)             = IllegalArgumentException
7950
     * StringUtils.getLevenshteinDistance(*, null, *)             = IllegalArgumentException
7951
     * StringUtils.getLevenshteinDistance(*, *, -1)               = IllegalArgumentException
7952
     * StringUtils.getLevenshteinDistance("","", 0)               = 0
7953
     * StringUtils.getLevenshteinDistance("aaapppp", "", 8)       = 7
7954
     * StringUtils.getLevenshteinDistance("aaapppp", "", 7)       = 7
7955
     * StringUtils.getLevenshteinDistance("aaapppp", "", 6))      = -1
7956
     * StringUtils.getLevenshteinDistance("elephant", "hippo", 7) = 7
7957
     * StringUtils.getLevenshteinDistance("elephant", "hippo", 6) = -1
7958
     * StringUtils.getLevenshteinDistance("hippo", "elephant", 7) = 7
7959
     * StringUtils.getLevenshteinDistance("hippo", "elephant", 6) = -1
7960
     * </pre>
7961
     *
7962
     * @param s  the first String, must not be null
7963
     * @param t  the second String, must not be null
7964
     * @param threshold the target threshold, must not be negative
7965
     * @return result distance, or {@code -1} if the distance would be greater than the threshold
7966
     * @throws IllegalArgumentException if either String input {@code null} or negative threshold
7967
     */
7968
    public static int getLevenshteinDistance(CharSequence s, CharSequence t, final int threshold) {
7969 2 1. getLevenshteinDistance : negated conditional → KILLED
2. getLevenshteinDistance : negated conditional → KILLED
        if (s == null || t == null) {
7970
            throw new IllegalArgumentException("Strings must not be null");
7971
        }
7972 2 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : negated conditional → KILLED
        if (threshold < 0) {
7973
            throw new IllegalArgumentException("Threshold must not be negative");
7974
        }
7975
7976
        /*
7977
        This implementation only computes the distance if it's less than or equal to the
7978
        threshold value, returning -1 if it's greater.  The advantage is performance: unbounded
7979
        distance is O(nm), but a bound of k allows us to reduce it to O(km) time by only
7980
        computing a diagonal stripe of width 2k + 1 of the cost table.
7981
        It is also possible to use this to compute the unbounded Levenshtein distance by starting
7982
        the threshold at 1 and doubling each time until the distance is found; this is O(dm), where
7983
        d is the distance.
7984
7985
        One subtlety comes from needing to ignore entries on the border of our stripe
7986
        eg.
7987
        p[] = |#|#|#|*
7988
        d[] =  *|#|#|#|
7989
        We must ignore the entry to the left of the leftmost member
7990
        We must ignore the entry above the rightmost member
7991
7992
        Another subtlety comes from our stripe running off the matrix if the strings aren't
7993
        of the same size.  Since string s is always swapped to be the shorter of the two,
7994
        the stripe will always run off to the upper right instead of the lower left of the matrix.
7995
7996
        As a concrete example, suppose s is of length 5, t is of length 7, and our threshold is 1.
7997
        In this case we're going to walk a stripe of length 3.  The matrix would look like so:
7998
7999
           1 2 3 4 5
8000
        1 |#|#| | | |
8001
        2 |#|#|#| | |
8002
        3 | |#|#|#| |
8003
        4 | | |#|#|#|
8004
        5 | | | |#|#|
8005
        6 | | | | |#|
8006
        7 | | | | | |
8007
8008
        Note how the stripe leads off the table as there is no possible way to turn a string of length 5
8009
        into one of length 7 in edit distance of 1.
8010
8011
        Additionally, this implementation decreases memory usage by using two
8012
        single-dimensional arrays and swapping them back and forth instead of allocating
8013
        an entire n by m matrix.  This requires a few minor changes, such as immediately returning
8014
        when it's detected that the stripe has run off the matrix and initially filling the arrays with
8015
        large values so that entries we don't compute are ignored.
8016
8017
        See Algorithms on Strings, Trees and Sequences by Dan Gusfield for some discussion.
8018
         */
8019
8020
        int n = s.length(); // length of s
8021
        int m = t.length(); // length of t
8022
8023
        // if one string is empty, the edit distance is necessarily the length of the other
8024 1 1. getLevenshteinDistance : negated conditional → KILLED
        if (n == 0) {
8025 3 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : negated conditional → KILLED
3. getLevenshteinDistance : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return m <= threshold ? m : -1;
8026 1 1. getLevenshteinDistance : negated conditional → KILLED
        } else if (m == 0) {
8027 3 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : negated conditional → KILLED
3. getLevenshteinDistance : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return n <= threshold ? n : -1;
8028
        }
8029
        // no need to calculate the distance if the length difference is greater than the threshold
8030 3 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
3. getLevenshteinDistance : negated conditional → KILLED
        else if (Math.abs(n - m) > threshold) {
8031 1 1. getLevenshteinDistance : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return -1;
8032
        }
8033
8034 2 1. getLevenshteinDistance : changed conditional boundary → SURVIVED
2. getLevenshteinDistance : negated conditional → SURVIVED
        if (n > m) {
8035
            // swap the two strings to consume less memory
8036
            final CharSequence tmp = s;
8037
            s = t;
8038
            t = tmp;
8039
            n = m;
8040
            m = t.length();
8041
        }
8042
8043 1 1. getLevenshteinDistance : Replaced integer addition with subtraction → KILLED
        int p[] = new int[n + 1]; // 'previous' cost array, horizontally
8044 1 1. getLevenshteinDistance : Replaced integer addition with subtraction → KILLED
        int d[] = new int[n + 1]; // cost array, horizontally
8045
        int _d[]; // placeholder to assist in swapping p and d
8046
8047
        // fill in starting table values
8048 1 1. getLevenshteinDistance : Replaced integer addition with subtraction → KILLED
        final int boundary = Math.min(n, threshold) + 1;
8049 3 1. getLevenshteinDistance : negated conditional → SURVIVED
2. getLevenshteinDistance : changed conditional boundary → KILLED
3. getLevenshteinDistance : Changed increment from 1 to -1 → KILLED
        for (int i = 0; i < boundary; i++) {
8050
            p[i] = i;
8051
        }
8052
        // these fills ensure that the value above the rightmost entry of our
8053
        // stripe will be ignored in following loop iterations
8054 1 1. getLevenshteinDistance : removed call to java/util/Arrays::fill → SURVIVED
        Arrays.fill(p, boundary, p.length, Integer.MAX_VALUE);
8055 1 1. getLevenshteinDistance : removed call to java/util/Arrays::fill → SURVIVED
        Arrays.fill(d, Integer.MAX_VALUE);
8056
8057
        // iterates through t
8058 3 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : Changed increment from 1 to -1 → KILLED
3. getLevenshteinDistance : negated conditional → KILLED
        for (int j = 1; j <= m; j++) {
8059 1 1. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
            final char t_j = t.charAt(j - 1); // jth character of t
8060
            d[0] = j;
8061
8062
            // compute stripe indices, constrain to array size
8063 1 1. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
            final int min = Math.max(1, j - threshold);
8064 4 1. getLevenshteinDistance : changed conditional boundary → SURVIVED
2. getLevenshteinDistance : Replaced integer subtraction with addition → SURVIVED
3. getLevenshteinDistance : Replaced integer addition with subtraction → KILLED
4. getLevenshteinDistance : negated conditional → KILLED
            final int max = j > Integer.MAX_VALUE - threshold ? n : Math.min(n, j + threshold);
8065
8066
            // the stripe may lead off of the table if s and t are of different sizes
8067 2 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : negated conditional → KILLED
            if (min > max) {
8068 1 1. getLevenshteinDistance : replaced return of integer sized value with (x == 0 ? 1 : 0) → NO_COVERAGE
                return -1;
8069
            }
8070
8071
            // ignore entry left of leftmost
8072 2 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : negated conditional → KILLED
            if (min > 1) {
8073 1 1. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
                d[min - 1] = Integer.MAX_VALUE;
8074
            }
8075
8076
            // iterates through [min, max] in s
8077 3 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : Changed increment from 1 to -1 → KILLED
3. getLevenshteinDistance : negated conditional → KILLED
            for (int i = min; i <= max; i++) {
8078 2 1. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
2. getLevenshteinDistance : negated conditional → KILLED
                if (s.charAt(i - 1) == t_j) {
8079
                    // diagonally left and up
8080 1 1. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
                    d[i] = p[i - 1];
8081
                } else {
8082
                    // 1 + minimum of cell to the left, to the top, diagonally left and up
8083 3 1. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
2. getLevenshteinDistance : Replaced integer subtraction with addition → KILLED
3. getLevenshteinDistance : Replaced integer addition with subtraction → KILLED
                    d[i] = 1 + Math.min(Math.min(d[i - 1], p[i]), p[i - 1]);
8084
                }
8085
            }
8086
8087
            // copy current distance counts to 'previous row' distance counts
8088
            _d = p;
8089
            p = d;
8090
            d = _d;
8091
        }
8092
8093
        // if p[n] is greater than the threshold, there's no guarantee on it being the correct
8094
        // distance
8095 2 1. getLevenshteinDistance : changed conditional boundary → KILLED
2. getLevenshteinDistance : negated conditional → KILLED
        if (p[n] <= threshold) {
8096 1 1. getLevenshteinDistance : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return p[n];
8097
        }
8098 1 1. getLevenshteinDistance : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return -1;
8099
    }
8100
    
8101
    /**
8102
     * <p>Find the Jaro Winkler Distance which indicates the similarity score between two Strings.</p>
8103
     *
8104
     * <p>The Jaro measure is the weighted sum of percentage of matched characters from each file and transposed characters. 
8105
     * Winkler increased this measure for matching initial characters.</p>
8106
     *
8107
     * <p>This implementation is based on the Jaro Winkler similarity algorithm
8108
     * from <a href="http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance">http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance</a>.</p>
8109
     * 
8110
     * <pre>
8111
     * StringUtils.getJaroWinklerDistance(null, null)          = IllegalArgumentException
8112
     * StringUtils.getJaroWinklerDistance("","")               = 0.0
8113
     * StringUtils.getJaroWinklerDistance("","a")              = 0.0
8114
     * StringUtils.getJaroWinklerDistance("aaapppp", "")       = 0.0
8115
     * StringUtils.getJaroWinklerDistance("frog", "fog")       = 0.93
8116
     * StringUtils.getJaroWinklerDistance("fly", "ant")        = 0.0
8117
     * StringUtils.getJaroWinklerDistance("elephant", "hippo") = 0.44
8118
     * StringUtils.getJaroWinklerDistance("hippo", "elephant") = 0.44
8119
     * StringUtils.getJaroWinklerDistance("hippo", "zzzzzzzz") = 0.0
8120
     * StringUtils.getJaroWinklerDistance("hello", "hallo")    = 0.88
8121
     * StringUtils.getJaroWinklerDistance("ABC Corporation", "ABC Corp") = 0.93
8122
     * StringUtils.getJaroWinklerDistance("D N H Enterprises Inc", "D &amp; H Enterprises, Inc.") = 0.95
8123
     * StringUtils.getJaroWinklerDistance("My Gym Children's Fitness Center", "My Gym. Childrens Fitness") = 0.92
8124
     * StringUtils.getJaroWinklerDistance("PENNSYLVANIA", "PENNCISYLVNIA") = 0.88
8125
     * </pre>
8126
     *
8127
     * @param first the first String, must not be null
8128
     * @param second the second String, must not be null
8129
     * @return result distance
8130
     * @throws IllegalArgumentException if either String input {@code null}
8131
     * @since 3.3
8132
     * @deprecated as of 3.6, due to a misleading name, use {@link #getJaroWinklerSimilarity(CharSequence, CharSequence)} instead
8133
     */
8134
    @Deprecated
8135
    public static double getJaroWinklerDistance(final CharSequence first, final CharSequence second) {
8136
        final double DEFAULT_SCALING_FACTOR = 0.1;
8137
8138 2 1. getJaroWinklerDistance : negated conditional → KILLED
2. getJaroWinklerDistance : negated conditional → KILLED
        if (first == null || second == null) {
8139
            throw new IllegalArgumentException("Strings must not be null");
8140
        }
8141
8142
        final int[] mtp = matches(first, second);
8143
        final double m = mtp[0];
8144 1 1. getJaroWinklerDistance : negated conditional → KILLED
        if (m == 0) {
8145 1 1. getJaroWinklerDistance : replaced return of double value with -(x + 1) for org/apache/commons/lang3/StringUtils::getJaroWinklerDistance → KILLED
            return 0D;
8146
        }
8147 7 1. getJaroWinklerDistance : Replaced double division with multiplication → KILLED
2. getJaroWinklerDistance : Replaced double division with multiplication → KILLED
3. getJaroWinklerDistance : Replaced double addition with subtraction → KILLED
4. getJaroWinklerDistance : Replaced double subtraction with addition → KILLED
5. getJaroWinklerDistance : Replaced double division with multiplication → KILLED
6. getJaroWinklerDistance : Replaced double addition with subtraction → KILLED
7. getJaroWinklerDistance : Replaced double division with multiplication → KILLED
        final double j = ((m / first.length() + m / second.length() + (m - mtp[1]) / m)) / 3;
8148 7 1. getJaroWinklerDistance : changed conditional boundary → SURVIVED
2. getJaroWinklerDistance : Replaced double division with multiplication → KILLED
3. getJaroWinklerDistance : Replaced double multiplication with division → KILLED
4. getJaroWinklerDistance : Replaced double subtraction with addition → KILLED
5. getJaroWinklerDistance : Replaced double multiplication with division → KILLED
6. getJaroWinklerDistance : Replaced double addition with subtraction → KILLED
7. getJaroWinklerDistance : negated conditional → KILLED
        final double jw = j < 0.7D ? j : j + Math.min(DEFAULT_SCALING_FACTOR, 1D / mtp[3]) * mtp[2] * (1D - j);
8149 3 1. getJaroWinklerDistance : Replaced double multiplication with division → KILLED
2. getJaroWinklerDistance : Replaced double division with multiplication → KILLED
3. getJaroWinklerDistance : replaced return of double value with -(x + 1) for org/apache/commons/lang3/StringUtils::getJaroWinklerDistance → KILLED
        return Math.round(jw * 100.0D) / 100.0D;
8150
    }
8151
8152
    /**
8153
     * <p>Find the Jaro Winkler Similarity which indicates the similarity score between two Strings.</p>
8154
     *
8155
     * <p>The Jaro measure is the weighted sum of percentage of matched characters from each file and transposed characters. 
8156
     * Winkler increased this measure for matching initial characters.</p>
8157
     *
8158
     * <p>This implementation is based on the Jaro Winkler similarity algorithm
8159
     * from <a href="http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance">http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance</a>.</p>
8160
     * 
8161
     * <pre>
8162
     * StringUtils.getJaroWinklerSimilarity(null, null)          = IllegalArgumentException
8163
     * StringUtils.getJaroWinklerSimilarity("","")               = 0.0
8164
     * StringUtils.getJaroWinklerSimilarity("","a")              = 0.0
8165
     * StringUtils.getJaroWinklerSimilarity("aaapppp", "")       = 0.0
8166
     * StringUtils.getJaroWinklerSimilarity("frog", "fog")       = 0.93
8167
     * StringUtils.getJaroWinklerSimilarity("fly", "ant")        = 0.0
8168
     * StringUtils.getJaroWinklerSimilarity("elephant", "hippo") = 0.44
8169
     * StringUtils.getJaroWinklerSimilarity("hippo", "elephant") = 0.44
8170
     * StringUtils.getJaroWinklerSimilarity("hippo", "zzzzzzzz") = 0.0
8171
     * StringUtils.getJaroWinklerSimilarity("hello", "hallo")    = 0.88
8172
     * StringUtils.getJaroWinklerSimilarity("ABC Corporation", "ABC Corp") = 0.93
8173
     * StringUtils.getJaroWinklerSimilarity("D N H Enterprises Inc", "D &amp; H Enterprises, Inc.") = 0.95
8174
     * StringUtils.getJaroWinklerSimilarity("My Gym Children's Fitness Center", "My Gym. Childrens Fitness") = 0.92
8175
     * StringUtils.getJaroWinklerSimilarity("PENNSYLVANIA", "PENNCISYLVNIA") = 0.88
8176
     * </pre>
8177
     *
8178
     * @param first the first String, must not be null
8179
     * @param second the second String, must not be null
8180
     * @return result similarity
8181
     * @throws IllegalArgumentException if either String input {@code null}
8182
     * @since 3.6
8183
     */
8184
    public static double getJaroWinklerSimilarity(final CharSequence first, final CharSequence second) {
8185
        final double DEFAULT_SCALING_FACTOR = 0.1;
8186
8187 2 1. getJaroWinklerSimilarity : negated conditional → KILLED
2. getJaroWinklerSimilarity : negated conditional → KILLED
        if (first == null || second == null) {
8188
            throw new IllegalArgumentException("Strings must not be null");
8189
        }
8190
8191
        final int[] mtp = matches(first, second);
8192
        final double m = mtp[0];
8193 1 1. getJaroWinklerSimilarity : negated conditional → KILLED
        if (m == 0) {
8194 1 1. getJaroWinklerSimilarity : replaced return of double value with -(x + 1) for org/apache/commons/lang3/StringUtils::getJaroWinklerSimilarity → KILLED
            return 0D;
8195
        }
8196 7 1. getJaroWinklerSimilarity : Replaced double division with multiplication → KILLED
2. getJaroWinklerSimilarity : Replaced double division with multiplication → KILLED
3. getJaroWinklerSimilarity : Replaced double addition with subtraction → KILLED
4. getJaroWinklerSimilarity : Replaced double subtraction with addition → KILLED
5. getJaroWinklerSimilarity : Replaced double division with multiplication → KILLED
6. getJaroWinklerSimilarity : Replaced double addition with subtraction → KILLED
7. getJaroWinklerSimilarity : Replaced double division with multiplication → KILLED
        final double j = ((m / first.length() + m / second.length() + (m - mtp[1]) / m)) / 3;
8197 7 1. getJaroWinklerSimilarity : changed conditional boundary → SURVIVED
2. getJaroWinklerSimilarity : Replaced double division with multiplication → KILLED
3. getJaroWinklerSimilarity : Replaced double multiplication with division → KILLED
4. getJaroWinklerSimilarity : Replaced double subtraction with addition → KILLED
5. getJaroWinklerSimilarity : Replaced double multiplication with division → KILLED
6. getJaroWinklerSimilarity : Replaced double addition with subtraction → KILLED
7. getJaroWinklerSimilarity : negated conditional → KILLED
        final double jw = j < 0.7D ? j : j + Math.min(DEFAULT_SCALING_FACTOR, 1D / mtp[3]) * mtp[2] * (1D - j);
8198 3 1. getJaroWinklerSimilarity : Replaced double multiplication with division → KILLED
2. getJaroWinklerSimilarity : Replaced double division with multiplication → KILLED
3. getJaroWinklerSimilarity : replaced return of double value with -(x + 1) for org/apache/commons/lang3/StringUtils::getJaroWinklerSimilarity → KILLED
        return Math.round(jw * 100.0D) / 100.0D;
8199
    }
8200
8201
    private static int[] matches(final CharSequence first, final CharSequence second) {
8202
        CharSequence max, min;
8203 2 1. matches : changed conditional boundary → SURVIVED
2. matches : negated conditional → KILLED
        if (first.length() > second.length()) {
8204
            max = first;
8205
            min = second;
8206
        } else {
8207
            max = second;
8208
            min = first;
8209
        }
8210 2 1. matches : Replaced integer division with multiplication → KILLED
2. matches : Replaced integer subtraction with addition → KILLED
        final int range = Math.max(max.length() / 2 - 1, 0);
8211
        final int[] matchIndexes = new int[min.length()];
8212 1 1. matches : removed call to java/util/Arrays::fill → KILLED
        Arrays.fill(matchIndexes, -1);
8213
        final boolean[] matchFlags = new boolean[max.length()];
8214
        int matches = 0;
8215 3 1. matches : changed conditional boundary → KILLED
2. matches : Changed increment from 1 to -1 → KILLED
3. matches : negated conditional → KILLED
        for (int mi = 0; mi < min.length(); mi++) {
8216
            final char c1 = min.charAt(mi);
8217 6 1. matches : changed conditional boundary → KILLED
2. matches : Changed increment from 1 to -1 → KILLED
3. matches : Replaced integer subtraction with addition → KILLED
4. matches : Replaced integer addition with subtraction → KILLED
5. matches : Replaced integer addition with subtraction → KILLED
6. matches : negated conditional → KILLED
            for (int xi = Math.max(mi - range, 0), xn = Math.min(mi + range + 1, max.length()); xi < xn; xi++) {
8218 2 1. matches : negated conditional → KILLED
2. matches : negated conditional → KILLED
                if (!matchFlags[xi] && c1 == max.charAt(xi)) {
8219
                    matchIndexes[mi] = xi;
8220
                    matchFlags[xi] = true;
8221 1 1. matches : Changed increment from 1 to -1 → KILLED
                    matches++;
8222
                    break;
8223
                }
8224
            }
8225
        }
8226
        final char[] ms1 = new char[matches];
8227
        final char[] ms2 = new char[matches];
8228 3 1. matches : changed conditional boundary → KILLED
2. matches : Changed increment from 1 to -1 → KILLED
3. matches : negated conditional → KILLED
        for (int i = 0, si = 0; i < min.length(); i++) {
8229 1 1. matches : negated conditional → KILLED
            if (matchIndexes[i] != -1) {
8230
                ms1[si] = min.charAt(i);
8231 1 1. matches : Changed increment from 1 to -1 → KILLED
                si++;
8232
            }
8233
        }
8234 3 1. matches : changed conditional boundary → KILLED
2. matches : Changed increment from 1 to -1 → KILLED
3. matches : negated conditional → KILLED
        for (int i = 0, si = 0; i < max.length(); i++) {
8235 1 1. matches : negated conditional → KILLED
            if (matchFlags[i]) {
8236
                ms2[si] = max.charAt(i);
8237 1 1. matches : Changed increment from 1 to -1 → KILLED
                si++;
8238
            }
8239
        }
8240
        int transpositions = 0;
8241 3 1. matches : changed conditional boundary → KILLED
2. matches : Changed increment from 1 to -1 → KILLED
3. matches : negated conditional → KILLED
        for (int mi = 0; mi < ms1.length; mi++) {
8242 1 1. matches : negated conditional → KILLED
            if (ms1[mi] != ms2[mi]) {
8243 1 1. matches : Changed increment from 1 to -1 → KILLED
                transpositions++;
8244
            }
8245
        }
8246
        int prefix = 0;
8247 3 1. matches : changed conditional boundary → KILLED
2. matches : Changed increment from 1 to -1 → KILLED
3. matches : negated conditional → KILLED
        for (int mi = 0; mi < min.length(); mi++) {
8248 1 1. matches : negated conditional → KILLED
            if (first.charAt(mi) == second.charAt(mi)) {
8249 1 1. matches : Changed increment from 1 to -1 → KILLED
                prefix++;
8250
            } else {
8251
                break;
8252
            }
8253
        }
8254 2 1. matches : Replaced integer division with multiplication → KILLED
2. matches : mutated return of Object value for org/apache/commons/lang3/StringUtils::matches to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new int[] { matches, transpositions / 2, prefix, max.length() };
8255
    }
8256
8257
    /**
8258
     * <p>Find the Fuzzy Distance which indicates the similarity score between two Strings.</p>
8259
     *
8260
     * <p>This string matching algorithm is similar to the algorithms of editors such as Sublime Text,
8261
     * TextMate, Atom and others. One point is given for every matched character. Subsequent
8262
     * matches yield two bonus points. A higher score indicates a higher similarity.</p>
8263
     *
8264
     * <pre>
8265
     * StringUtils.getFuzzyDistance(null, null, null)                                    = IllegalArgumentException
8266
     * StringUtils.getFuzzyDistance("", "", Locale.ENGLISH)                              = 0
8267
     * StringUtils.getFuzzyDistance("Workshop", "b", Locale.ENGLISH)                     = 0
8268
     * StringUtils.getFuzzyDistance("Room", "o", Locale.ENGLISH)                         = 1
8269
     * StringUtils.getFuzzyDistance("Workshop", "w", Locale.ENGLISH)                     = 1
8270
     * StringUtils.getFuzzyDistance("Workshop", "ws", Locale.ENGLISH)                    = 2
8271
     * StringUtils.getFuzzyDistance("Workshop", "wo", Locale.ENGLISH)                    = 4
8272
     * StringUtils.getFuzzyDistance("Apache Software Foundation", "asf", Locale.ENGLISH) = 3
8273
     * </pre>
8274
     *
8275
     * @param term a full term that should be matched against, must not be null
8276
     * @param query the query that will be matched against a term, must not be null
8277
     * @param locale This string matching logic is case insensitive. A locale is necessary to normalize
8278
     *  both Strings to lower case.
8279
     * @return result score
8280
     * @throws IllegalArgumentException if either String input {@code null} or Locale input {@code null}
8281
     * @since 3.4
8282
     */
8283
    public static int getFuzzyDistance(final CharSequence term, final CharSequence query, final Locale locale) {
8284 2 1. getFuzzyDistance : negated conditional → KILLED
2. getFuzzyDistance : negated conditional → KILLED
        if (term == null || query == null) {
8285
            throw new IllegalArgumentException("Strings must not be null");
8286 1 1. getFuzzyDistance : negated conditional → KILLED
        } else if (locale == null) {
8287
            throw new IllegalArgumentException("Locale must not be null");
8288
        }
8289
8290
        // fuzzy logic is case insensitive. We normalize the Strings to lower
8291
        // case right from the start. Turning characters to lower case
8292
        // via Character.toLowerCase(char) is unfortunately insufficient
8293
        // as it does not accept a locale.
8294
        final String termLowerCase = term.toString().toLowerCase(locale);
8295
        final String queryLowerCase = query.toString().toLowerCase(locale);
8296
8297
        // the resulting score
8298
        int score = 0;
8299
8300
        // the position in the term which will be scanned next for potential
8301
        // query character matches
8302
        int termIndex = 0;
8303
8304
        // index of the previously matched character in the term
8305
        int previousMatchingCharacterIndex = Integer.MIN_VALUE;
8306
8307 3 1. getFuzzyDistance : changed conditional boundary → KILLED
2. getFuzzyDistance : Changed increment from 1 to -1 → KILLED
3. getFuzzyDistance : negated conditional → KILLED
        for (int queryIndex = 0; queryIndex < queryLowerCase.length(); queryIndex++) {
8308
            final char queryChar = queryLowerCase.charAt(queryIndex);
8309
8310
            boolean termCharacterMatchFound = false;
8311 4 1. getFuzzyDistance : changed conditional boundary → KILLED
2. getFuzzyDistance : Changed increment from 1 to -1 → KILLED
3. getFuzzyDistance : negated conditional → KILLED
4. getFuzzyDistance : negated conditional → KILLED
            for (; termIndex < termLowerCase.length() && !termCharacterMatchFound; termIndex++) {
8312
                final char termChar = termLowerCase.charAt(termIndex);
8313
8314 1 1. getFuzzyDistance : negated conditional → KILLED
                if (queryChar == termChar) {
8315
                    // simple character matches result in one point
8316 1 1. getFuzzyDistance : Changed increment from 1 to -1 → KILLED
                    score++;
8317
8318
                    // subsequent character matches further improve
8319
                    // the score.
8320 2 1. getFuzzyDistance : Replaced integer addition with subtraction → KILLED
2. getFuzzyDistance : negated conditional → KILLED
                    if (previousMatchingCharacterIndex + 1 == termIndex) {
8321 1 1. getFuzzyDistance : Changed increment from 2 to -2 → KILLED
                        score += 2;
8322
                    }
8323
8324
                    previousMatchingCharacterIndex = termIndex;
8325
8326
                    // we can leave the nested loop. Every character in the
8327
                    // query can match at most one character in the term.
8328
                    termCharacterMatchFound = true;
8329
                }
8330
            }
8331
        }
8332
8333 1 1. getFuzzyDistance : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return score;
8334
    }
8335
8336
    // startsWith
8337
    //-----------------------------------------------------------------------
8338
8339
    /**
8340
     * <p>Check if a CharSequence starts with a specified prefix.</p>
8341
     *
8342
     * <p>{@code null}s are handled without exceptions. Two {@code null}
8343
     * references are considered to be equal. The comparison is case sensitive.</p>
8344
     *
8345
     * <pre>
8346
     * StringUtils.startsWith(null, null)      = true
8347
     * StringUtils.startsWith(null, "abc")     = false
8348
     * StringUtils.startsWith("abcdef", null)  = false
8349
     * StringUtils.startsWith("abcdef", "abc") = true
8350
     * StringUtils.startsWith("ABCDEF", "abc") = false
8351
     * </pre>
8352
     *
8353
     * @see java.lang.String#startsWith(String)
8354
     * @param str  the CharSequence to check, may be null
8355
     * @param prefix the prefix to find, may be null
8356
     * @return {@code true} if the CharSequence starts with the prefix, case sensitive, or
8357
     *  both {@code null}
8358
     * @since 2.4
8359
     * @since 3.0 Changed signature from startsWith(String, String) to startsWith(CharSequence, CharSequence)
8360
     */
8361
    public static boolean startsWith(final CharSequence str, final CharSequence prefix) {
8362 1 1. startsWith : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return startsWith(str, prefix, false);
8363
    }
8364
8365
    /**
8366
     * <p>Case insensitive check if a CharSequence starts with a specified prefix.</p>
8367
     *
8368
     * <p>{@code null}s are handled without exceptions. Two {@code null}
8369
     * references are considered to be equal. The comparison is case insensitive.</p>
8370
     *
8371
     * <pre>
8372
     * StringUtils.startsWithIgnoreCase(null, null)      = true
8373
     * StringUtils.startsWithIgnoreCase(null, "abc")     = false
8374
     * StringUtils.startsWithIgnoreCase("abcdef", null)  = false
8375
     * StringUtils.startsWithIgnoreCase("abcdef", "abc") = true
8376
     * StringUtils.startsWithIgnoreCase("ABCDEF", "abc") = true
8377
     * </pre>
8378
     *
8379
     * @see java.lang.String#startsWith(String)
8380
     * @param str  the CharSequence to check, may be null
8381
     * @param prefix the prefix to find, may be null
8382
     * @return {@code true} if the CharSequence starts with the prefix, case insensitive, or
8383
     *  both {@code null}
8384
     * @since 2.4
8385
     * @since 3.0 Changed signature from startsWithIgnoreCase(String, String) to startsWithIgnoreCase(CharSequence, CharSequence)
8386
     */
8387
    public static boolean startsWithIgnoreCase(final CharSequence str, final CharSequence prefix) {
8388 1 1. startsWithIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return startsWith(str, prefix, true);
8389
    }
8390
8391
    /**
8392
     * <p>Check if a CharSequence starts with a specified prefix (optionally case insensitive).</p>
8393
     *
8394
     * @see java.lang.String#startsWith(String)
8395
     * @param str  the CharSequence to check, may be null
8396
     * @param prefix the prefix to find, may be null
8397
     * @param ignoreCase indicates whether the compare should ignore case
8398
     *  (case insensitive) or not.
8399
     * @return {@code true} if the CharSequence starts with the prefix or
8400
     *  both {@code null}
8401
     */
8402
    private static boolean startsWith(final CharSequence str, final CharSequence prefix, final boolean ignoreCase) {
8403 2 1. startsWith : negated conditional → KILLED
2. startsWith : negated conditional → KILLED
        if (str == null || prefix == null) {
8404 3 1. startsWith : negated conditional → KILLED
2. startsWith : negated conditional → KILLED
3. startsWith : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return str == null && prefix == null;
8405
        }
8406 2 1. startsWith : changed conditional boundary → SURVIVED
2. startsWith : negated conditional → KILLED
        if (prefix.length() > str.length()) {
8407 1 1. startsWith : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
8408
        }
8409 1 1. startsWith : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.regionMatches(str, ignoreCase, 0, prefix, 0, prefix.length());
8410
    }
8411
8412
    /**
8413
     * <p>Check if a CharSequence starts with any of the provided case-sensitive prefixes.</p>
8414
     *
8415
     * <pre>
8416
     * StringUtils.startsWithAny(null, null)      = false
8417
     * StringUtils.startsWithAny(null, new String[] {"abc"})  = false
8418
     * StringUtils.startsWithAny("abcxyz", null)     = false
8419
     * StringUtils.startsWithAny("abcxyz", new String[] {""}) = true
8420
     * StringUtils.startsWithAny("abcxyz", new String[] {"abc"}) = true
8421
     * StringUtils.startsWithAny("abcxyz", new String[] {null, "xyz", "abc"}) = true
8422
     * StringUtils.startsWithAny("abcxyz", null, "xyz", "ABCX") = false
8423
     * StringUtils.startsWithAny("ABCXYZ", null, "xyz", "abc") = false
8424
     * </pre>
8425
     *
8426
     * @param sequence the CharSequence to check, may be null
8427
     * @param searchStrings the case-sensitive CharSequence prefixes, may be empty or contain {@code null}
8428
     * @see StringUtils#startsWith(CharSequence, CharSequence)
8429
     * @return {@code true} if the input {@code sequence} is {@code null} AND no {@code searchStrings} are provided, or
8430
     *   the input {@code sequence} begins with any of the provided case-sensitive {@code searchStrings}.
8431
     * @since 2.5
8432
     * @since 3.0 Changed signature from startsWithAny(String, String[]) to startsWithAny(CharSequence, CharSequence...)
8433
     */
8434
    public static boolean startsWithAny(final CharSequence sequence, final CharSequence... searchStrings) {
8435 2 1. startsWithAny : negated conditional → KILLED
2. startsWithAny : negated conditional → KILLED
        if (isEmpty(sequence) || ArrayUtils.isEmpty(searchStrings)) {
8436 1 1. startsWithAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
8437
        }
8438 3 1. startsWithAny : changed conditional boundary → KILLED
2. startsWithAny : Changed increment from 1 to -1 → KILLED
3. startsWithAny : negated conditional → KILLED
        for (final CharSequence searchString : searchStrings) {
8439 1 1. startsWithAny : negated conditional → KILLED
            if (startsWith(sequence, searchString)) {
8440 1 1. startsWithAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return true;
8441
            }
8442
        }
8443 1 1. startsWithAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
8444
    }
8445
8446
    // endsWith
8447
    //-----------------------------------------------------------------------
8448
8449
    /**
8450
     * <p>Check if a CharSequence ends with a specified suffix.</p>
8451
     *
8452
     * <p>{@code null}s are handled without exceptions. Two {@code null}
8453
     * references are considered to be equal. The comparison is case sensitive.</p>
8454
     *
8455
     * <pre>
8456
     * StringUtils.endsWith(null, null)      = true
8457
     * StringUtils.endsWith(null, "def")     = false
8458
     * StringUtils.endsWith("abcdef", null)  = false
8459
     * StringUtils.endsWith("abcdef", "def") = true
8460
     * StringUtils.endsWith("ABCDEF", "def") = false
8461
     * StringUtils.endsWith("ABCDEF", "cde") = false
8462
     * StringUtils.endsWith("ABCDEF", "")    = true
8463
     * </pre>
8464
     *
8465
     * @see java.lang.String#endsWith(String)
8466
     * @param str  the CharSequence to check, may be null
8467
     * @param suffix the suffix to find, may be null
8468
     * @return {@code true} if the CharSequence ends with the suffix, case sensitive, or
8469
     *  both {@code null}
8470
     * @since 2.4
8471
     * @since 3.0 Changed signature from endsWith(String, String) to endsWith(CharSequence, CharSequence)
8472
     */
8473
    public static boolean endsWith(final CharSequence str, final CharSequence suffix) {
8474 1 1. endsWith : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return endsWith(str, suffix, false);
8475
    }
8476
8477
    /**
8478
     * <p>Case insensitive check if a CharSequence ends with a specified suffix.</p>
8479
     *
8480
     * <p>{@code null}s are handled without exceptions. Two {@code null}
8481
     * references are considered to be equal. The comparison is case insensitive.</p>
8482
     *
8483
     * <pre>
8484
     * StringUtils.endsWithIgnoreCase(null, null)      = true
8485
     * StringUtils.endsWithIgnoreCase(null, "def")     = false
8486
     * StringUtils.endsWithIgnoreCase("abcdef", null)  = false
8487
     * StringUtils.endsWithIgnoreCase("abcdef", "def") = true
8488
     * StringUtils.endsWithIgnoreCase("ABCDEF", "def") = true
8489
     * StringUtils.endsWithIgnoreCase("ABCDEF", "cde") = false
8490
     * </pre>
8491
     *
8492
     * @see java.lang.String#endsWith(String)
8493
     * @param str  the CharSequence to check, may be null
8494
     * @param suffix the suffix to find, may be null
8495
     * @return {@code true} if the CharSequence ends with the suffix, case insensitive, or
8496
     *  both {@code null}
8497
     * @since 2.4
8498
     * @since 3.0 Changed signature from endsWithIgnoreCase(String, String) to endsWithIgnoreCase(CharSequence, CharSequence)
8499
     */
8500
    public static boolean endsWithIgnoreCase(final CharSequence str, final CharSequence suffix) {
8501 1 1. endsWithIgnoreCase : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return endsWith(str, suffix, true);
8502
    }
8503
8504
    /**
8505
     * <p>Check if a CharSequence ends with a specified suffix (optionally case insensitive).</p>
8506
     *
8507
     * @see java.lang.String#endsWith(String)
8508
     * @param str  the CharSequence to check, may be null
8509
     * @param suffix the suffix to find, may be null
8510
     * @param ignoreCase indicates whether the compare should ignore case
8511
     *  (case insensitive) or not.
8512
     * @return {@code true} if the CharSequence starts with the prefix or
8513
     *  both {@code null}
8514
     */
8515
    private static boolean endsWith(final CharSequence str, final CharSequence suffix, final boolean ignoreCase) {
8516 2 1. endsWith : negated conditional → KILLED
2. endsWith : negated conditional → KILLED
        if (str == null || suffix == null) {
8517 3 1. endsWith : negated conditional → KILLED
2. endsWith : negated conditional → KILLED
3. endsWith : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return str == null && suffix == null;
8518
        }
8519 2 1. endsWith : changed conditional boundary → SURVIVED
2. endsWith : negated conditional → KILLED
        if (suffix.length() > str.length()) {
8520 1 1. endsWith : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
8521
        }
8522 1 1. endsWith : Replaced integer subtraction with addition → KILLED
        final int strOffset = str.length() - suffix.length();
8523 1 1. endsWith : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return CharSequenceUtils.regionMatches(str, ignoreCase, strOffset, suffix, 0, suffix.length());
8524
    }
8525
8526
    /**
8527
     * <p>
8528
     * Similar to <a
8529
     * href="http://www.w3.org/TR/xpath/#function-normalize-space">http://www.w3.org/TR/xpath/#function-normalize
8530
     * -space</a>
8531
     * </p>
8532
     * <p>
8533
     * The function returns the argument string with whitespace normalized by using
8534
     * <code>{@link #trim(String)}</code> to remove leading and trailing whitespace
8535
     * and then replacing sequences of whitespace characters by a single space.
8536
     * </p>
8537
     * In XML Whitespace characters are the same as those allowed by the <a
8538
     * href="http://www.w3.org/TR/REC-xml/#NT-S">S</a> production, which is S ::= (#x20 | #x9 | #xD | #xA)+
8539
     * <p>
8540
     * Java's regexp pattern \s defines whitespace as [ \t\n\x0B\f\r]
8541
     *
8542
     * <p>For reference:</p>
8543
     * <ul>
8544
     * <li>\x0B = vertical tab</li>
8545
     * <li>\f = #xC = form feed</li>
8546
     * <li>#x20 = space</li>
8547
     * <li>#x9 = \t</li>
8548
     * <li>#xA = \n</li>
8549
     * <li>#xD = \r</li>
8550
     * </ul>
8551
     *
8552
     * <p>
8553
     * The difference is that Java's whitespace includes vertical tab and form feed, which this functional will also
8554
     * normalize. Additionally <code>{@link #trim(String)}</code> removes control characters (char &lt;= 32) from both
8555
     * ends of this String.
8556
     * </p>
8557
     *
8558
     * @see Pattern
8559
     * @see #trim(String)
8560
     * @see <a
8561
     *      href="http://www.w3.org/TR/xpath/#function-normalize-space">http://www.w3.org/TR/xpath/#function-normalize-space</a>
8562
     * @param str the source String to normalize whitespaces from, may be null
8563
     * @return the modified string with whitespace normalized, {@code null} if null String input
8564
     *
8565
     * @since 3.0
8566
     */
8567
    public static String normalizeSpace(final String str) {
8568
        // LANG-1020: Improved performance significantly by normalizing manually instead of using regex
8569
        // See https://github.com/librucha/commons-lang-normalizespaces-benchmark for performance test
8570 1 1. normalizeSpace : negated conditional → KILLED
        if (isEmpty(str)) {
8571 1 1. normalizeSpace : mutated return of Object value for org/apache/commons/lang3/StringUtils::normalizeSpace to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
8572
        }
8573
        final int size = str.length();
8574
        final char[] newChars = new char[size];
8575
        int count = 0;
8576
        int whitespacesCount = 0;
8577
        boolean startWhitespaces = true;
8578 3 1. normalizeSpace : changed conditional boundary → KILLED
2. normalizeSpace : Changed increment from 1 to -1 → KILLED
3. normalizeSpace : negated conditional → KILLED
        for (int i = 0; i < size; i++) {
8579
            final char actualChar = str.charAt(i);
8580
            final boolean isWhitespace = Character.isWhitespace(actualChar);
8581 1 1. normalizeSpace : negated conditional → KILLED
            if (!isWhitespace) {
8582
                startWhitespaces = false;
8583 2 1. normalizeSpace : Changed increment from 1 to -1 → KILLED
2. normalizeSpace : negated conditional → KILLED
                newChars[count++] = (actualChar == 160 ? 32 : actualChar);
8584
                whitespacesCount = 0;
8585
            } else {
8586 2 1. normalizeSpace : negated conditional → KILLED
2. normalizeSpace : negated conditional → KILLED
                if (whitespacesCount == 0 && !startWhitespaces) {
8587 1 1. normalizeSpace : Changed increment from 1 to -1 → KILLED
                    newChars[count++] = SPACE.charAt(0);
8588
                }
8589 1 1. normalizeSpace : Changed increment from 1 to -1 → SURVIVED
                whitespacesCount++;
8590
            }
8591
        }
8592 1 1. normalizeSpace : negated conditional → KILLED
        if (startWhitespaces) {
8593 1 1. normalizeSpace : mutated return of Object value for org/apache/commons/lang3/StringUtils::normalizeSpace to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return EMPTY;
8594
        }
8595 4 1. normalizeSpace : Replaced integer subtraction with addition → SURVIVED
2. normalizeSpace : changed conditional boundary → KILLED
3. normalizeSpace : negated conditional → KILLED
4. normalizeSpace : mutated return of Object value for org/apache/commons/lang3/StringUtils::normalizeSpace to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new String(newChars, 0, count - (whitespacesCount > 0 ? 1 : 0)).trim();
8596
    }
8597
8598
    /**
8599
     * <p>Check if a CharSequence ends with any of the provided case-sensitive suffixes.</p>
8600
     *
8601
     * <pre>
8602
     * StringUtils.endsWithAny(null, null)      = false
8603
     * StringUtils.endsWithAny(null, new String[] {"abc"})  = false
8604
     * StringUtils.endsWithAny("abcxyz", null)     = false
8605
     * StringUtils.endsWithAny("abcxyz", new String[] {""}) = true
8606
     * StringUtils.endsWithAny("abcxyz", new String[] {"xyz"}) = true
8607
     * StringUtils.endsWithAny("abcxyz", new String[] {null, "xyz", "abc"}) = true
8608
     * StringUtils.endsWithAny("abcXYZ", "def", "XYZ") = true
8609
     * StringUtils.endsWithAny("abcXYZ", "def", "xyz") = false
8610
     * </pre>
8611
     *
8612
     * @param sequence  the CharSequence to check, may be null
8613
     * @param searchStrings the case-sensitive CharSequences to find, may be empty or contain {@code null}
8614
     * @see StringUtils#endsWith(CharSequence, CharSequence)
8615
     * @return {@code true} if the input {@code sequence} is {@code null} AND no {@code searchStrings} are provided, or
8616
     *   the input {@code sequence} ends in any of the provided case-sensitive {@code searchStrings}.
8617
     * @since 3.0
8618
     */
8619
    public static boolean endsWithAny(final CharSequence sequence, final CharSequence... searchStrings) {
8620 2 1. endsWithAny : negated conditional → KILLED
2. endsWithAny : negated conditional → KILLED
        if (isEmpty(sequence) || ArrayUtils.isEmpty(searchStrings)) {
8621 1 1. endsWithAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
            return false;
8622
        }
8623 3 1. endsWithAny : changed conditional boundary → KILLED
2. endsWithAny : Changed increment from 1 to -1 → KILLED
3. endsWithAny : negated conditional → KILLED
        for (final CharSequence searchString : searchStrings) {
8624 1 1. endsWithAny : negated conditional → KILLED
            if (endsWith(sequence, searchString)) {
8625 1 1. endsWithAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
                return true;
8626
            }
8627
        }
8628 1 1. endsWithAny : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED
        return false;
8629
    }
8630
8631
    /**
8632
     * Appends the suffix to the end of the string if the string does not
8633
     * already end with the suffix.
8634
     *
8635
     * @param str The string.
8636
     * @param suffix The suffix to append to the end of the string.
8637
     * @param ignoreCase Indicates whether the compare should ignore case.
8638
     * @param suffixes Additional suffixes that are valid terminators (optional).
8639
     *
8640
     * @return A new String if suffix was appended, the same string otherwise.
8641
     */
8642
    private static String appendIfMissing(final String str, final CharSequence suffix, final boolean ignoreCase, final CharSequence... suffixes) {
8643 3 1. appendIfMissing : negated conditional → KILLED
2. appendIfMissing : negated conditional → KILLED
3. appendIfMissing : negated conditional → KILLED
        if (str == null || isEmpty(suffix) || endsWith(str, suffix, ignoreCase)) {
8644 1 1. appendIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::appendIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
8645
        }
8646 3 1. appendIfMissing : changed conditional boundary → SURVIVED
2. appendIfMissing : negated conditional → KILLED
3. appendIfMissing : negated conditional → KILLED
        if (suffixes != null && suffixes.length > 0) {
8647 3 1. appendIfMissing : changed conditional boundary → KILLED
2. appendIfMissing : Changed increment from 1 to -1 → KILLED
3. appendIfMissing : negated conditional → KILLED
            for (final CharSequence s : suffixes) {
8648 1 1. appendIfMissing : negated conditional → KILLED
                if (endsWith(str, s, ignoreCase)) {
8649 1 1. appendIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::appendIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
                    return str;
8650
                }
8651
            }
8652
        }
8653 1 1. appendIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::appendIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str + suffix.toString();
8654
    }
8655
8656
    /**
8657
     * Appends the suffix to the end of the string if the string does not
8658
     * already end with any of the suffixes.
8659
     *
8660
     * <pre>
8661
     * StringUtils.appendIfMissing(null, null) = null
8662
     * StringUtils.appendIfMissing("abc", null) = "abc"
8663
     * StringUtils.appendIfMissing("", "xyz") = "xyz"
8664
     * StringUtils.appendIfMissing("abc", "xyz") = "abcxyz"
8665
     * StringUtils.appendIfMissing("abcxyz", "xyz") = "abcxyz"
8666
     * StringUtils.appendIfMissing("abcXYZ", "xyz") = "abcXYZxyz"
8667
     * </pre>
8668
     * <p>With additional suffixes,</p>
8669
     * <pre>
8670
     * StringUtils.appendIfMissing(null, null, null) = null
8671
     * StringUtils.appendIfMissing("abc", null, null) = "abc"
8672
     * StringUtils.appendIfMissing("", "xyz", null) = "xyz"
8673
     * StringUtils.appendIfMissing("abc", "xyz", new CharSequence[]{null}) = "abcxyz"
8674
     * StringUtils.appendIfMissing("abc", "xyz", "") = "abc"
8675
     * StringUtils.appendIfMissing("abc", "xyz", "mno") = "abcxyz"
8676
     * StringUtils.appendIfMissing("abcxyz", "xyz", "mno") = "abcxyz"
8677
     * StringUtils.appendIfMissing("abcmno", "xyz", "mno") = "abcmno"
8678
     * StringUtils.appendIfMissing("abcXYZ", "xyz", "mno") = "abcXYZxyz"
8679
     * StringUtils.appendIfMissing("abcMNO", "xyz", "mno") = "abcMNOxyz"
8680
     * </pre>
8681
     *
8682
     * @param str The string.
8683
     * @param suffix The suffix to append to the end of the string.
8684
     * @param suffixes Additional suffixes that are valid terminators.
8685
     *
8686
     * @return A new String if suffix was appended, the same string otherwise.
8687
     *
8688
     * @since 3.2
8689
     */
8690
    public static String appendIfMissing(final String str, final CharSequence suffix, final CharSequence... suffixes) {
8691 1 1. appendIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::appendIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return appendIfMissing(str, suffix, false, suffixes);
8692
    }
8693
8694
    /**
8695
     * Appends the suffix to the end of the string if the string does not
8696
     * already end, case insensitive, with any of the suffixes.
8697
     *
8698
     * <pre>
8699
     * StringUtils.appendIfMissingIgnoreCase(null, null) = null
8700
     * StringUtils.appendIfMissingIgnoreCase("abc", null) = "abc"
8701
     * StringUtils.appendIfMissingIgnoreCase("", "xyz") = "xyz"
8702
     * StringUtils.appendIfMissingIgnoreCase("abc", "xyz") = "abcxyz"
8703
     * StringUtils.appendIfMissingIgnoreCase("abcxyz", "xyz") = "abcxyz"
8704
     * StringUtils.appendIfMissingIgnoreCase("abcXYZ", "xyz") = "abcXYZ"
8705
     * </pre>
8706
     * <p>With additional suffixes,</p>
8707
     * <pre>
8708
     * StringUtils.appendIfMissingIgnoreCase(null, null, null) = null
8709
     * StringUtils.appendIfMissingIgnoreCase("abc", null, null) = "abc"
8710
     * StringUtils.appendIfMissingIgnoreCase("", "xyz", null) = "xyz"
8711
     * StringUtils.appendIfMissingIgnoreCase("abc", "xyz", new CharSequence[]{null}) = "abcxyz"
8712
     * StringUtils.appendIfMissingIgnoreCase("abc", "xyz", "") = "abc"
8713
     * StringUtils.appendIfMissingIgnoreCase("abc", "xyz", "mno") = "axyz"
8714
     * StringUtils.appendIfMissingIgnoreCase("abcxyz", "xyz", "mno") = "abcxyz"
8715
     * StringUtils.appendIfMissingIgnoreCase("abcmno", "xyz", "mno") = "abcmno"
8716
     * StringUtils.appendIfMissingIgnoreCase("abcXYZ", "xyz", "mno") = "abcXYZ"
8717
     * StringUtils.appendIfMissingIgnoreCase("abcMNO", "xyz", "mno") = "abcMNO"
8718
     * </pre>
8719
     *
8720
     * @param str The string.
8721
     * @param suffix The suffix to append to the end of the string.
8722
     * @param suffixes Additional suffixes that are valid terminators.
8723
     *
8724
     * @return A new String if suffix was appended, the same string otherwise.
8725
     *
8726
     * @since 3.2
8727
     */
8728
    public static String appendIfMissingIgnoreCase(final String str, final CharSequence suffix, final CharSequence... suffixes) {
8729 1 1. appendIfMissingIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::appendIfMissingIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return appendIfMissing(str, suffix, true, suffixes);
8730
    }
8731
8732
    /**
8733
     * Prepends the prefix to the start of the string if the string does not
8734
     * already start with any of the prefixes.
8735
     *
8736
     * @param str The string.
8737
     * @param prefix The prefix to prepend to the start of the string.
8738
     * @param ignoreCase Indicates whether the compare should ignore case.
8739
     * @param prefixes Additional prefixes that are valid (optional).
8740
     *
8741
     * @return A new String if prefix was prepended, the same string otherwise.
8742
     */
8743
    private static String prependIfMissing(final String str, final CharSequence prefix, final boolean ignoreCase, final CharSequence... prefixes) {
8744 3 1. prependIfMissing : negated conditional → KILLED
2. prependIfMissing : negated conditional → KILLED
3. prependIfMissing : negated conditional → KILLED
        if (str == null || isEmpty(prefix) || startsWith(str, prefix, ignoreCase)) {
8745 1 1. prependIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::prependIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
8746
        }
8747 3 1. prependIfMissing : changed conditional boundary → SURVIVED
2. prependIfMissing : negated conditional → KILLED
3. prependIfMissing : negated conditional → KILLED
        if (prefixes != null && prefixes.length > 0) {
8748 3 1. prependIfMissing : changed conditional boundary → KILLED
2. prependIfMissing : Changed increment from 1 to -1 → KILLED
3. prependIfMissing : negated conditional → KILLED
            for (final CharSequence p : prefixes) {
8749 1 1. prependIfMissing : negated conditional → KILLED
                if (startsWith(str, p, ignoreCase)) {
8750 1 1. prependIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::prependIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
                    return str;
8751
                }
8752
            }
8753
        }
8754 1 1. prependIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::prependIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return prefix.toString() + str;
8755
    }
8756
8757
    /**
8758
     * Prepends the prefix to the start of the string if the string does not
8759
     * already start with any of the prefixes.
8760
     *
8761
     * <pre>
8762
     * StringUtils.prependIfMissing(null, null) = null
8763
     * StringUtils.prependIfMissing("abc", null) = "abc"
8764
     * StringUtils.prependIfMissing("", "xyz") = "xyz"
8765
     * StringUtils.prependIfMissing("abc", "xyz") = "xyzabc"
8766
     * StringUtils.prependIfMissing("xyzabc", "xyz") = "xyzabc"
8767
     * StringUtils.prependIfMissing("XYZabc", "xyz") = "xyzXYZabc"
8768
     * </pre>
8769
     * <p>With additional prefixes,</p>
8770
     * <pre>
8771
     * StringUtils.prependIfMissing(null, null, null) = null
8772
     * StringUtils.prependIfMissing("abc", null, null) = "abc"
8773
     * StringUtils.prependIfMissing("", "xyz", null) = "xyz"
8774
     * StringUtils.prependIfMissing("abc", "xyz", new CharSequence[]{null}) = "xyzabc"
8775
     * StringUtils.prependIfMissing("abc", "xyz", "") = "abc"
8776
     * StringUtils.prependIfMissing("abc", "xyz", "mno") = "xyzabc"
8777
     * StringUtils.prependIfMissing("xyzabc", "xyz", "mno") = "xyzabc"
8778
     * StringUtils.prependIfMissing("mnoabc", "xyz", "mno") = "mnoabc"
8779
     * StringUtils.prependIfMissing("XYZabc", "xyz", "mno") = "xyzXYZabc"
8780
     * StringUtils.prependIfMissing("MNOabc", "xyz", "mno") = "xyzMNOabc"
8781
     * </pre>
8782
     *
8783
     * @param str The string.
8784
     * @param prefix The prefix to prepend to the start of the string.
8785
     * @param prefixes Additional prefixes that are valid.
8786
     *
8787
     * @return A new String if prefix was prepended, the same string otherwise.
8788
     *
8789
     * @since 3.2
8790
     */
8791
    public static String prependIfMissing(final String str, final CharSequence prefix, final CharSequence... prefixes) {
8792 1 1. prependIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::prependIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return prependIfMissing(str, prefix, false, prefixes);
8793
    }
8794
8795
    /**
8796
     * Prepends the prefix to the start of the string if the string does not
8797
     * already start, case insensitive, with any of the prefixes.
8798
     *
8799
     * <pre>
8800
     * StringUtils.prependIfMissingIgnoreCase(null, null) = null
8801
     * StringUtils.prependIfMissingIgnoreCase("abc", null) = "abc"
8802
     * StringUtils.prependIfMissingIgnoreCase("", "xyz") = "xyz"
8803
     * StringUtils.prependIfMissingIgnoreCase("abc", "xyz") = "xyzabc"
8804
     * StringUtils.prependIfMissingIgnoreCase("xyzabc", "xyz") = "xyzabc"
8805
     * StringUtils.prependIfMissingIgnoreCase("XYZabc", "xyz") = "XYZabc"
8806
     * </pre>
8807
     * <p>With additional prefixes,</p>
8808
     * <pre>
8809
     * StringUtils.prependIfMissingIgnoreCase(null, null, null) = null
8810
     * StringUtils.prependIfMissingIgnoreCase("abc", null, null) = "abc"
8811
     * StringUtils.prependIfMissingIgnoreCase("", "xyz", null) = "xyz"
8812
     * StringUtils.prependIfMissingIgnoreCase("abc", "xyz", new CharSequence[]{null}) = "xyzabc"
8813
     * StringUtils.prependIfMissingIgnoreCase("abc", "xyz", "") = "abc"
8814
     * StringUtils.prependIfMissingIgnoreCase("abc", "xyz", "mno") = "xyzabc"
8815
     * StringUtils.prependIfMissingIgnoreCase("xyzabc", "xyz", "mno") = "xyzabc"
8816
     * StringUtils.prependIfMissingIgnoreCase("mnoabc", "xyz", "mno") = "mnoabc"
8817
     * StringUtils.prependIfMissingIgnoreCase("XYZabc", "xyz", "mno") = "XYZabc"
8818
     * StringUtils.prependIfMissingIgnoreCase("MNOabc", "xyz", "mno") = "MNOabc"
8819
     * </pre>
8820
     *
8821
     * @param str The string.
8822
     * @param prefix The prefix to prepend to the start of the string.
8823
     * @param prefixes Additional prefixes that are valid (optional).
8824
     *
8825
     * @return A new String if prefix was prepended, the same string otherwise.
8826
     *
8827
     * @since 3.2
8828
     */
8829
    public static String prependIfMissingIgnoreCase(final String str, final CharSequence prefix, final CharSequence... prefixes) {
8830 1 1. prependIfMissingIgnoreCase : mutated return of Object value for org/apache/commons/lang3/StringUtils::prependIfMissingIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return prependIfMissing(str, prefix, true, prefixes);
8831
    }
8832
8833
    /**
8834
     * Converts a <code>byte[]</code> to a String using the specified character encoding.
8835
     *
8836
     * @param bytes
8837
     *            the byte array to read from
8838
     * @param charsetName
8839
     *            the encoding to use, if null then use the platform default
8840
     * @return a new String
8841
     * @throws UnsupportedEncodingException
8842
     *             If the named charset is not supported
8843
     * @throws NullPointerException
8844
     *             if the input is null
8845
     * @deprecated use {@link StringUtils#toEncodedString(byte[], Charset)} instead of String constants in your code
8846
     * @since 3.1
8847
     */
8848
    @Deprecated
8849
    public static String toString(final byte[] bytes, final String charsetName) throws UnsupportedEncodingException {
8850 2 1. toString : negated conditional → KILLED
2. toString : mutated return of Object value for org/apache/commons/lang3/StringUtils::toString to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return charsetName != null ? new String(bytes, charsetName) : new String(bytes, Charset.defaultCharset());
8851
    }
8852
8853
    /**
8854
     * Converts a <code>byte[]</code> to a String using the specified character encoding.
8855
     * 
8856
     * @param bytes
8857
     *            the byte array to read from
8858
     * @param charset
8859
     *            the encoding to use, if null then use the platform default
8860
     * @return a new String
8861
     * @throws NullPointerException
8862
     *             if {@code bytes} is null
8863
     * @since 3.2
8864
     * @since 3.3 No longer throws {@link UnsupportedEncodingException}.
8865
     */
8866
    public static String toEncodedString(final byte[] bytes, final Charset charset) {
8867 2 1. toEncodedString : negated conditional → KILLED
2. toEncodedString : mutated return of Object value for org/apache/commons/lang3/StringUtils::toEncodedString to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return new String(bytes, charset != null ? charset : Charset.defaultCharset());
8868
    }
8869
8870
    /**
8871
     * <p>
8872
     * Wraps a string with a char.
8873
     * </p>
8874
     * 
8875
     * <pre>
8876
     * StringUtils.wrap(null, *)        = null
8877
     * StringUtils.wrap("", *)          = ""
8878
     * StringUtils.wrap("ab", '\0')     = "ab"
8879
     * StringUtils.wrap("ab", 'x')      = "xabx"
8880
     * StringUtils.wrap("ab", '\'')     = "'ab'"
8881
     * StringUtils.wrap("\"ab\"", '\"') = "\"\"ab\"\""
8882
     * </pre>
8883
     * 
8884
     * @param str
8885
     *            the string to be wrapped, may be {@code null}
8886
     * @param wrapWith
8887
     *            the char that will wrap {@code str}
8888
     * @return the wrapped string, or {@code null} if {@code str==null}
8889
     * @since 3.4
8890
     */
8891
    public static String wrap(final String str, final char wrapWith) {
8892
8893 2 1. wrap : negated conditional → KILLED
2. wrap : negated conditional → KILLED
        if (isEmpty(str) || wrapWith == '\0') {
8894 1 1. wrap : mutated return of Object value for org/apache/commons/lang3/StringUtils::wrap to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
8895
        }
8896
8897 1 1. wrap : mutated return of Object value for org/apache/commons/lang3/StringUtils::wrap to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return wrapWith + str + wrapWith;
8898
    }
8899
8900
    /**
8901
     * <p>
8902
     * Wraps a String with another String.
8903
     * </p>
8904
     * 
8905
     * <p>
8906
     * A {@code null} input String returns {@code null}.
8907
     * </p>
8908
     * 
8909
     * <pre>
8910
     * StringUtils.wrap(null, *)         = null
8911
     * StringUtils.wrap("", *)           = ""
8912
     * StringUtils.wrap("ab", null)      = "ab"
8913
     * StringUtils.wrap("ab", "x")       = "xabx"
8914
     * StringUtils.wrap("ab", "\"")      = "\"ab\""
8915
     * StringUtils.wrap("\"ab\"", "\"")  = "\"\"ab\"\""
8916
     * StringUtils.wrap("ab", "'")       = "'ab'"
8917
     * StringUtils.wrap("'abcd'", "'")   = "''abcd''"
8918
     * StringUtils.wrap("\"abcd\"", "'") = "'\"abcd\"'"
8919
     * StringUtils.wrap("'abcd'", "\"")  = "\"'abcd'\""
8920
     * </pre>
8921
     * 
8922
     * @param str
8923
     *            the String to be wrapper, may be null
8924
     * @param wrapWith
8925
     *            the String that will wrap str
8926
     * @return wrapped String, {@code null} if null String input
8927
     * @since 3.4
8928
     */
8929
    public static String wrap(final String str, final String wrapWith) {
8930
8931 2 1. wrap : negated conditional → KILLED
2. wrap : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(wrapWith)) {
8932 1 1. wrap : mutated return of Object value for org/apache/commons/lang3/StringUtils::wrap to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
8933
        }
8934
8935 1 1. wrap : mutated return of Object value for org/apache/commons/lang3/StringUtils::wrap to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return wrapWith.concat(str).concat(wrapWith);
8936
    }
8937
8938
    /**
8939
     * <p>
8940
     * Wraps a string with a char if that char is missing from the start or end of the given string.
8941
     * </p>
8942
     * 
8943
     * <pre>
8944
     * StringUtils.wrap(null, *)        = null
8945
     * StringUtils.wrap("", *)          = ""
8946
     * StringUtils.wrap("ab", '\0')     = "ab"
8947
     * StringUtils.wrap("ab", 'x')      = "xabx"
8948
     * StringUtils.wrap("ab", '\'')     = "'ab'"
8949
     * StringUtils.wrap("\"ab\"", '\"') = "\"ab\""
8950
     * StringUtils.wrap("/", '/')  = "/"
8951
     * StringUtils.wrap("a/b/c", '/')  = "/a/b/c/"
8952
     * StringUtils.wrap("/a/b/c", '/')  = "/a/b/c/"
8953
     * StringUtils.wrap("a/b/c/", '/')  = "/a/b/c/"
8954
     * </pre>
8955
     * 
8956
     * @param str
8957
     *            the string to be wrapped, may be {@code null}
8958
     * @param wrapWith
8959
     *            the char that will wrap {@code str}
8960
     * @return the wrapped string, or {@code null} if {@code str==null}
8961
     * @since 3.5
8962
     */
8963
    public static String wrapIfMissing(final String str, final char wrapWith) {
8964 2 1. wrapIfMissing : negated conditional → KILLED
2. wrapIfMissing : negated conditional → KILLED
        if (isEmpty(str) || wrapWith == '\0') {
8965 1 1. wrapIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::wrapIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
8966
        }
8967 1 1. wrapIfMissing : Replaced integer addition with subtraction → KILLED
        final StringBuilder builder = new StringBuilder(str.length() + 2);
8968 1 1. wrapIfMissing : negated conditional → KILLED
        if (str.charAt(0) != wrapWith) {
8969
            builder.append(wrapWith);
8970
        }
8971
        builder.append(str);
8972 2 1. wrapIfMissing : Replaced integer subtraction with addition → KILLED
2. wrapIfMissing : negated conditional → KILLED
        if (str.charAt(str.length() - 1) != wrapWith) {
8973
            builder.append(wrapWith);
8974
        }
8975 1 1. wrapIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::wrapIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return builder.toString();
8976
    }
8977
8978
    /**
8979
     * <p>
8980
     * Wraps a string with a string if that string is missing from the start or end of the given string.
8981
     * </p>
8982
     * 
8983
     * <pre>
8984
     * StringUtils.wrap(null, *)         = null
8985
     * StringUtils.wrap("", *)           = ""
8986
     * StringUtils.wrap("ab", null)      = "ab"
8987
     * StringUtils.wrap("ab", "x")       = "xabx"
8988
     * StringUtils.wrap("ab", "\"")      = "\"ab\""
8989
     * StringUtils.wrap("\"ab\"", "\"")  = "\"ab\""
8990
     * StringUtils.wrap("ab", "'")       = "'ab'"
8991
     * StringUtils.wrap("'abcd'", "'")   = "'abcd'"
8992
     * StringUtils.wrap("\"abcd\"", "'") = "'\"abcd\"'"
8993
     * StringUtils.wrap("'abcd'", "\"")  = "\"'abcd'\""
8994
     * StringUtils.wrap("/", "/")  = "/"
8995
     * StringUtils.wrap("a/b/c", "/")  = "/a/b/c/"
8996
     * StringUtils.wrap("/a/b/c", "/")  = "/a/b/c/"
8997
     * StringUtils.wrap("a/b/c/", "/")  = "/a/b/c/"
8998
     * </pre>
8999
     * 
9000
     * @param str
9001
     *            the string to be wrapped, may be {@code null}
9002
     * @param wrapWith
9003
     *            the char that will wrap {@code str}
9004
     * @return the wrapped string, or {@code null} if {@code str==null}
9005
     * @since 3.5
9006
     */
9007
    public static String wrapIfMissing(final String str, final String wrapWith) {
9008 2 1. wrapIfMissing : negated conditional → KILLED
2. wrapIfMissing : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(wrapWith)) {
9009 1 1. wrapIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::wrapIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
9010
        }
9011 2 1. wrapIfMissing : Replaced integer addition with subtraction → SURVIVED
2. wrapIfMissing : Replaced integer addition with subtraction → SURVIVED
        final StringBuilder builder = new StringBuilder(str.length() + wrapWith.length() + wrapWith.length());
9012 1 1. wrapIfMissing : negated conditional → KILLED
        if (!str.startsWith(wrapWith)) {
9013
            builder.append(wrapWith);
9014
        }
9015
        builder.append(str);
9016 1 1. wrapIfMissing : negated conditional → KILLED
        if (!str.endsWith(wrapWith)) {
9017
            builder.append(wrapWith);
9018
        }
9019 1 1. wrapIfMissing : mutated return of Object value for org/apache/commons/lang3/StringUtils::wrapIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return builder.toString();
9020
    }
9021
9022
    /**
9023
     * <p>
9024
     * Unwraps a given string from anther string.
9025
     * </p>
9026
     *
9027
     * <pre>
9028
     * StringUtils.unwrap(null, null)         = null
9029
     * StringUtils.unwrap(null, "")           = null
9030
     * StringUtils.unwrap(null, "1")          = null
9031
     * StringUtils.unwrap("\'abc\'", "\'")    = "abc"
9032
     * StringUtils.unwrap("\"abc\"", "\"")    = "abc"
9033
     * StringUtils.unwrap("AABabcBAA", "AA")  = "BabcB"
9034
     * StringUtils.unwrap("A", "#")           = "A"
9035
     * StringUtils.unwrap("#A", "#")          = "#A"
9036
     * StringUtils.unwrap("A#", "#")          = "A#"
9037
     * </pre>
9038
     *
9039
     * @param str
9040
     *          the String to be unwrapped, can be null
9041
     * @param wrapToken
9042
     *          the String used to unwrap
9043
     * @return unwrapped String or the original string 
9044
     *          if it is not quoted properly with the wrapToken
9045
     * @since 3.6
9046
     */
9047
    public static String unwrap(final String str, final String wrapToken) {
9048 2 1. unwrap : negated conditional → KILLED
2. unwrap : negated conditional → KILLED
        if (isEmpty(str) || isEmpty(wrapToken)) {
9049 1 1. unwrap : mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
9050
        }
9051
9052 2 1. unwrap : negated conditional → KILLED
2. unwrap : negated conditional → KILLED
        if (startsWith(str, wrapToken) && endsWith(str, wrapToken)) {
9053
            final int startIndex = str.indexOf(wrapToken);
9054
            final int endIndex = str.lastIndexOf(wrapToken);
9055
            final int wrapLength = wrapToken.length();
9056 2 1. unwrap : negated conditional → KILLED
2. unwrap : negated conditional → KILLED
            if (startIndex != -1 && endIndex != -1) {
9057 2 1. unwrap : Replaced integer addition with subtraction → KILLED
2. unwrap : mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return str.substring(startIndex + wrapLength, endIndex);
9058
            }
9059
        }
9060
9061 1 1. unwrap : mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str;
9062
    }
9063
9064
    /**
9065
     * <p>
9066
     * Unwraps a given string from a character.
9067
     * </p>
9068
     * 
9069
     * <pre>
9070
     * StringUtils.unwrap(null, null)         = null
9071
     * StringUtils.unwrap(null, '\0')         = null
9072
     * StringUtils.unwrap(null, '1')          = null
9073
     * StringUtils.unwrap("\'abc\'", '\'')    = "abc"
9074
     * StringUtils.unwrap("AABabcBAA", 'A')  = "ABabcBA"
9075
     * StringUtils.unwrap("A", '#')           = "A"
9076
     * StringUtils.unwrap("#A", '#')          = "#A"
9077
     * StringUtils.unwrap("A#", '#')          = "A#"
9078
     * </pre>
9079
     *
9080
     * @param str
9081
     *          the String to be unwrapped, can be null
9082
     * @param wrapChar
9083
     *          the character used to unwrap
9084
     * @return unwrapped String or the original string 
9085
     *          if it is not quoted properly with the wrapChar
9086
     * @since 3.6
9087
     */
9088
    public static String unwrap(final String str, final char wrapChar) {
9089 2 1. unwrap : negated conditional → KILLED
2. unwrap : negated conditional → KILLED
        if (isEmpty(str) || wrapChar == '\0') {
9090 1 1. unwrap : mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return str;
9091
        }
9092
9093 3 1. unwrap : Replaced integer subtraction with addition → KILLED
2. unwrap : negated conditional → KILLED
3. unwrap : negated conditional → KILLED
        if (str.charAt(0) == wrapChar && str.charAt(str.length() - 1) == wrapChar) {
9094
            final int startIndex = 0;
9095 1 1. unwrap : Replaced integer subtraction with addition → KILLED
            final int endIndex = str.length() - 1;
9096 1 1. unwrap : negated conditional → KILLED
            if (startIndex != -1 && endIndex != -1) {
9097 1 1. unwrap : mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED
                return str.substring(startIndex + 1, endIndex);
9098
            }
9099
        }
9100
9101 1 1. unwrap : mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return str;
9102
    }
9103
    
9104
    
9105
    /**
9106
     * <p>Converts a {@code CharSequence} into an array of code points.</p>
9107
     * 
9108
     * <p>Valid pairs of surrogate code units will be converted into a single supplementary
9109
     * code point. Isolated surrogate code units (i.e. a high surrogate not followed by a low surrogate or
9110
     * a low surrogate not preceeded by a high surrogate) will be returned as-is.</p>
9111
     * 
9112
     * <pre>
9113
     * StringUtils.toCodePoints(null)   =  null
9114
     * StringUtils.toCodePoints("")     =  []  // empty array
9115
     * </pre>
9116
     * 
9117
     * @param str the character sequence to convert
9118
     * @return an array of code points
9119
     * @since 3.6
9120
     */
9121
    public static int[] toCodePoints(CharSequence str) {
9122 1 1. toCodePoints : negated conditional → KILLED
        if (str == null) {
9123 1 1. toCodePoints : mutated return of Object value for org/apache/commons/lang3/StringUtils::toCodePoints to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return null;
9124
        }
9125 1 1. toCodePoints : negated conditional → KILLED
        if (str.length() == 0) {
9126 1 1. toCodePoints : mutated return of Object value for org/apache/commons/lang3/StringUtils::toCodePoints to ( if (x != null) null else throw new RuntimeException ) → KILLED
            return ArrayUtils.EMPTY_INT_ARRAY;
9127
        }
9128
        
9129
        String s = str.toString();
9130
        int[] result = new int[s.codePointCount(0, s.length())];
9131
        int index = 0;
9132 3 1. toCodePoints : changed conditional boundary → KILLED
2. toCodePoints : Changed increment from 1 to -1 → KILLED
3. toCodePoints : negated conditional → KILLED
        for (int i = 0; i < result.length; i++) {
9133
            result[i] = s.codePointAt(index);
9134 1 1. toCodePoints : Replaced integer addition with subtraction → KILLED
            index += Character.charCount(result[i]);
9135
        }     
9136 1 1. toCodePoints : mutated return of Object value for org/apache/commons/lang3/StringUtils::toCodePoints to ( if (x != null) null else throw new RuntimeException ) → KILLED
        return result;
9137
    }    
9138
}

Mutations

210

1.1
Location : isEmpty
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfEmpty_CharBuffers(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : isEmpty
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfEmpty_CharBuffers(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : isEmpty
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfEmpty_CharBuffers(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

229

1.1
Location : isNotEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsNotEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

2.2
Location : isNotEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsNotEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

250

1.1
Location : isAnyEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

251

1.1
Location : isAnyEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

253

1.1
Location : isAnyEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
changed conditional boundary → KILLED

2.2
Location : isAnyEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAnyEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

254

1.1
Location : isAnyEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

255

1.1
Location : isAnyEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

258

1.1
Location : isAnyEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

280

1.1
Location : isAnyNotEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

281

1.1
Location : isAnyNotEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

283

1.1
Location : isAnyNotEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
changed conditional boundary → KILLED

2.2
Location : isAnyNotEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAnyNotEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

284

1.1
Location : isAnyNotEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

285

1.1
Location : isAnyNotEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

288

1.1
Location : isAnyNotEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

310

1.1
Location : isNoneEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsNoneEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

2.2
Location : isNoneEmpty
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsNoneEmpty(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

333

1.1
Location : isBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : isBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

334

1.1
Location : isBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

336

1.1
Location : isBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : isBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

337

1.1
Location : isBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

338

1.1
Location : isBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

341

1.1
Location : isBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

364

1.1
Location : isNotBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsNotBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

2.2
Location : isNotBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsNotBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

389

1.1
Location : isAnyBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

390

1.1
Location : isAnyBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

392

1.1
Location : isAnyBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
changed conditional boundary → KILLED

2.2
Location : isAnyBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAnyBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

393

1.1
Location : isAnyBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

394

1.1
Location : isAnyBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

397

1.1
Location : isAnyBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

422

1.1
Location : isAnyNotBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

423

1.1
Location : isAnyNotBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

425

1.1
Location : isAnyNotBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
changed conditional boundary → KILLED

2.2
Location : isAnyNotBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAnyNotBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

426

1.1
Location : isAnyNotBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

427

1.1
Location : isAnyNotBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

430

1.1
Location : isAnyNotBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsAnyNotBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

455

1.1
Location : isNoneBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsNoneBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
negated conditional → KILLED

2.2
Location : isNoneBlank
Killed by : org.apache.commons.lang3.StringUtilsEmptyBlankTest.testIsNoneBlank(org.apache.commons.lang3.StringUtilsEmptyBlankTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

484

1.1
Location : trim
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testTrim(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

2.2
Location : trim
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testTrim(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::trim to ( if (x != null) null else throw new RuntimeException ) → KILLED

511

1.1
Location : trimToNull
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testTrimToNull(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

2.2
Location : trimToNull
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testTrimToNull(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::trimToNull to ( if (x != null) null else throw new RuntimeException ) → KILLED

536

1.1
Location : trimToEmpty
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testTrimToEmpty(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

2.2
Location : trimToEmpty
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testTrimToEmpty(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::trimToEmpty to ( if (x != null) null else throw new RuntimeException ) → KILLED

571

1.1
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::truncate to ( if (x != null) null else throw new RuntimeException ) → KILLED

634

1.1
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

637

1.1
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

640

1.1
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

641

1.1
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::truncate to ( if (x != null) null else throw new RuntimeException ) → KILLED

643

1.1
Location : truncate
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

644

1.1
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringIntInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::truncate to ( if (x != null) null else throw new RuntimeException ) → KILLED

646

1.1
Location : truncate
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

647

1.1
Location : truncate
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

3.3
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

4.4
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

648

1.1
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::truncate to ( if (x != null) null else throw new RuntimeException ) → KILLED

650

1.1
Location : truncate
Killed by : org.apache.commons.lang3.StringUtilsTest.testTruncate_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::truncate to ( if (x != null) null else throw new RuntimeException ) → KILLED

678

1.1
Location : strip
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStrip_String(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::strip to ( if (x != null) null else throw new RuntimeException ) → KILLED

705

1.1
Location : stripToNull
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripToNull_String(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

706

1.1
Location : stripToNull
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripToNull_String(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripToNull to ( if (x != null) null else throw new RuntimeException ) → KILLED

709

1.1
Location : stripToNull
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripToNull_String(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

2.2
Location : stripToNull
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripToNull_String(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripToNull to ( if (x != null) null else throw new RuntimeException ) → KILLED

735

1.1
Location : stripToEmpty
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripToEmpty_String(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

2.2
Location : stripToEmpty
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripToEmpty_String(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripToEmpty to ( if (x != null) null else throw new RuntimeException ) → KILLED

765

1.1
Location : strip
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripToEmpty_String(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

766

1.1
Location : strip
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripToEmpty_String(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::strip to ( if (x != null) null else throw new RuntimeException ) → KILLED

769

1.1
Location : strip
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripToEmpty_String(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::strip to ( if (x != null) null else throw new RuntimeException ) → KILLED

798

1.1
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

2.2
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

799

1.1
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripStart to ( if (x != null) null else throw new RuntimeException ) → KILLED

802

1.1
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

803

1.1
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

2.2
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

804

1.1
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
Changed increment from 1 to -1 → KILLED

806

1.1
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

807

1.1
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripStart to ( if (x != null) null else throw new RuntimeException ) → KILLED

809

1.1
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

2.2
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

810

1.1
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
Changed increment from 1 to -1 → KILLED

813

1.1
Location : stripStart
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripStart_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripStart to ( if (x != null) null else throw new RuntimeException ) → KILLED

843

1.1
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testLANG666(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testLANG666(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

844

1.1
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripEnd_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED

847

1.1
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testLANG666(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

848

1.1
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripEnd_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripEnd_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

3.3
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripEnd_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

849

1.1
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripEnd_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
Changed increment from -1 to 1 → KILLED

851

1.1
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testLANG666(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

852

1.1
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripEnd_StringString(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED

854

1.1
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testLANG666(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testLANG666(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testLANG666(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

855

1.1
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testLANG666(org.apache.commons.lang3.StringUtilsTest)
Changed increment from -1 to 1 → KILLED

858

1.1
Location : stripEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testLANG666(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED

883

1.1
Location : stripAll
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAll(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripAll to ( if (x != null) null else throw new RuntimeException ) → KILLED

913

1.1
Location : stripAll
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAll(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

2.2
Location : stripAll
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAll(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

914

1.1
Location : stripAll
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAll(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripAll to ( if (x != null) null else throw new RuntimeException ) → KILLED

917

1.1
Location : stripAll
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAll(org.apache.commons.lang3.StringUtilsTrimStripTest)
changed conditional boundary → KILLED

2.2
Location : stripAll
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAll(org.apache.commons.lang3.StringUtilsTrimStripTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : stripAll
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAll(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

920

1.1
Location : stripAll
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAll(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripAll to ( if (x != null) null else throw new RuntimeException ) → KILLED

942

1.1
Location : stripAccents
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAccents(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

943

1.1
Location : stripAccents
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAccents(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripAccents to ( if (x != null) null else throw new RuntimeException ) → KILLED

947

1.1
Location : stripAccents
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAccents(org.apache.commons.lang3.StringUtilsTrimStripTest)
removed call to org/apache/commons/lang3/StringUtils::convertRemainingAccentCharacters → KILLED

949

1.1
Location : stripAccents
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAccents(org.apache.commons.lang3.StringUtilsTrimStripTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::stripAccents to ( if (x != null) null else throw new RuntimeException ) → KILLED

953

1.1
Location : convertRemainingAccentCharacters
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAccents(org.apache.commons.lang3.StringUtilsTrimStripTest)
changed conditional boundary → KILLED

2.2
Location : convertRemainingAccentCharacters
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAccents(org.apache.commons.lang3.StringUtilsTrimStripTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : convertRemainingAccentCharacters
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAccents(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

954

1.1
Location : convertRemainingAccentCharacters
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAccents(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

957

1.1
Location : convertRemainingAccentCharacters
Killed by : org.apache.commons.lang3.StringUtilsTrimStripTest.testStripAccents(org.apache.commons.lang3.StringUtilsTrimStripTest)
negated conditional → KILLED

988

1.1
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsOnStrings(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

989

1.1
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsOnStrings(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

991

1.1
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsOnStrings(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsOnStrings(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

992

1.1
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsOnStrings(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

994

1.1
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsOnStrings(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

995

1.1
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsOnStrings(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

997

1.1
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEquals(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAny(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

998

1.1
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsOnStrings(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1000

1.1
Location : equals
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEquals(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1025

1.1
Location : equalsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : equalsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1026

1.1
Location : equalsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : equalsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1027

1.1
Location : equalsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1028

1.1
Location : equalsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1029

1.1
Location : equalsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1030

1.1
Location : equalsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1032

1.1
Location : equalsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1071

1.1
Location : compare
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompare_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1109

1.1
Location : compare
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompare_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1110

1.1
Location : compare
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompare_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1112

1.1
Location : compare
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompare_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1113

1.1
Location : compare
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompare_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : compare
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompare_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1115

1.1
Location : compare
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompare_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1116

1.1
Location : compare
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompare_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : compare
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompare_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1118

1.1
Location : compare
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompare_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1159

1.1
Location : compareIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompareIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1202

1.1
Location : compareIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompareIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1203

1.1
Location : compareIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompareIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1205

1.1
Location : compareIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompareIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1206

1.1
Location : compareIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompareIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : compareIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompareIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1208

1.1
Location : compareIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompareIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1209

1.1
Location : compareIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompareIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : compareIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompareIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1211

1.1
Location : compareIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testCompareIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1234

1.1
Location : equalsAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAny(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1235

1.1
Location : equalsAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAny(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : equalsAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAny(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : equalsAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAny(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1236

1.1
Location : equalsAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAny(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1237

1.1
Location : equalsAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAny(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1241

1.1
Location : equalsAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAny(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1265

1.1
Location : equalsAnyIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAnyIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1266

1.1
Location : equalsAnyIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAnyIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : equalsAnyIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAnyIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : equalsAnyIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAnyIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1267

1.1
Location : equalsAnyIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAnyIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1268

1.1
Location : equalsAnyIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAnyIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1272

1.1
Location : equalsAnyIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testEqualsAnyIgnoreCase(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1298

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_char(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1299

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_char(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1301

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_char(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1331

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_charInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1332

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_charInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1334

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_charInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1362

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1363

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1365

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1402

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1403

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1405

1.1
Location : indexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOf_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1459

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1193(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1478

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testOrdinalIndexOf(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1193(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

3.3
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1193(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

4.4
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1193(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1479

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastOrdinalIndexOf(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1481

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1241_1(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1482

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastOrdinalIndexOf(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastOrdinalIndexOf(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1487

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1193(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1489

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1193(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1490

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastOrdinalIndexOf(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Replaced integer subtraction with addition → KILLED

1492

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1241_1(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Replaced integer addition with subtraction → KILLED

1494

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1241_1(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1241_1(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1495

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testOrdinalIndexOf(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1497

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1193(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Changed increment from 1 to -1 → KILLED

1498

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1193(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1193(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1499

1.1
Location : ordinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLANG1193(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1528

1.1
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1564

1.1
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1565

1.1
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1567

1.1
Location : indexOfIgnoreCase
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1570

1.1
Location : indexOfIgnoreCase
Killed by : none
Replaced integer subtraction with addition → SURVIVED

2.2
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Replaced integer addition with subtraction → KILLED

1571

1.1
Location : indexOfIgnoreCase
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1572

1.1
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1574

1.1
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1575

1.1
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1577

1.1
Location : indexOfIgnoreCase
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : indexOfIgnoreCase
Killed by : none
Changed increment from 1 to -1 → TIMED_OUT

3.3
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1578

1.1
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1579

1.1
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1582

1.1
Location : indexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfIgnoreCase_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1608

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_char(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1609

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_char(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1611

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_char(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1646

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_charInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1647

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_charInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1649

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_charInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1676

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1677

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1679

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1717

1.1
Location : lastOrdinalIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastOrdinalIndexOf(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1757

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1758

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1760

1.1
Location : lastIndexOf
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOf_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1787

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1788

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1790

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1826

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1827

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1829

1.1
Location : lastIndexOfIgnoreCase
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : lastIndexOfIgnoreCase
Killed by : none
Replaced integer subtraction with addition → SURVIVED

3.3
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1830

1.1
Location : lastIndexOfIgnoreCase
Killed by : none
Replaced integer subtraction with addition → SURVIVED

1832

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1833

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1835

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1836

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1839

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : lastIndexOfIgnoreCase
Killed by : none
Changed increment from -1 to 1 → TIMED_OUT

3.3
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1840

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1841

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_String(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1844

1.1
Location : lastIndexOfIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfIgnoreCase_StringInt(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1870

1.1
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_Char(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

1871

1.1
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_Char(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1873

1.1
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_Char(org.apache.commons.lang3.StringUtilsContainsTest)
changed conditional boundary → KILLED

2.2
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_Char(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

3.3
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_Char(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1899

1.1
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2.2
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

1900

1.1
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_Char(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1902

1.1
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
changed conditional boundary → KILLED

2.2
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

3.3
Location : contains
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContains_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1930

1.1
Location : containsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2.2
Location : containsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

1931

1.1
Location : containsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1934

1.1
Location : containsIgnoreCase
Killed by : none
Replaced integer subtraction with addition → SURVIVED

1935

1.1
Location : containsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsContainsTest)
changed conditional boundary → KILLED

2.2
Location : containsIgnoreCase
Killed by : none
Changed increment from 1 to -1 → TIMED_OUT

3.3
Location : containsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

1936

1.1
Location : containsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

1937

1.1
Location : containsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1940

1.1
Location : containsIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsIgnoreCase_StringString(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1955

1.1
Location : containsWhitespace
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsWhitespace(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

1956

1.1
Location : containsWhitespace
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsWhitespace(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1959

1.1
Location : containsWhitespace
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsWhitespace(org.apache.commons.lang3.StringUtilsContainsTest)
changed conditional boundary → KILLED

2.2
Location : containsWhitespace
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsWhitespace(org.apache.commons.lang3.StringUtilsContainsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : containsWhitespace
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsWhitespace(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

1960

1.1
Location : containsWhitespace
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsWhitespace(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

1961

1.1
Location : containsWhitespace
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsWhitespace(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1964

1.1
Location : containsWhitespace
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsWhitespace(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1993

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

1994

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

1997

1.1
Location : indexOfAny
Killed by : none
Replaced integer subtraction with addition → SURVIVED

1999

1.1
Location : indexOfAny
Killed by : none
Replaced integer subtraction with addition → SURVIVED

2000

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2002

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2003

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2004

1.1
Location : indexOfAny
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : indexOfAny
Killed by : none
changed conditional boundary → SURVIVED

3.3
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

4.4
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

5.5
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2006

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Replaced integer addition with subtraction → KILLED

2.2
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Replaced integer addition with subtraction → KILLED

3.3
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2007

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2010

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2015

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2042

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2043

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2045

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2076

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2.2
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2077

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringString(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2081

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
Replaced integer subtraction with addition → KILLED

2082

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
Replaced integer subtraction with addition → KILLED

2083

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
changed conditional boundary → KILLED

2.2
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2085

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
changed conditional boundary → KILLED

2.2
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2086

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2087

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2088

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2090

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2092

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
changed conditional boundary → KILLED

2.2
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
Replaced integer addition with subtraction → KILLED

3.3
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
Replaced integer addition with subtraction → KILLED

4.4
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

5.5
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2093

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2097

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2102

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringCharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2137

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2138

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringString(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2140

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2169

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringStringArray(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2.2
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringStringArray(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2170

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringStringArray(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2172

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringStringArray(org.apache.commons.lang3.StringUtilsContainsTest)
changed conditional boundary → KILLED

2.2
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringStringArray(org.apache.commons.lang3.StringUtilsContainsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringStringArray(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2173

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringStringArray(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2174

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringStringArray(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2177

1.1
Location : containsAny
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsAny_StringStringArray(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2207

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2208

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2211

1.1
Location : indexOfAnyBut
Killed by : none
Replaced integer subtraction with addition → SURVIVED

2213

1.1
Location : indexOfAnyBut
Killed by : none
Replaced integer subtraction with addition → SURVIVED

2215

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2217

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2218

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2219

1.1
Location : indexOfAnyBut
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : indexOfAnyBut
Killed by : none
changed conditional boundary → SURVIVED

3.3
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

4.4
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

5.5
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2220

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Replaced integer addition with subtraction → KILLED

2.2
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Replaced integer addition with subtraction → KILLED

3.3
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2228

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringCharArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2230

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2257

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2258

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2261

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringStringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2263

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2264

1.1
Location : indexOfAnyBut
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : indexOfAnyBut
Killed by : none
Replaced integer addition with subtraction → SURVIVED

3.3
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringStringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

4.4
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2265

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringStringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Replaced integer addition with subtraction → KILLED

2266

1.1
Location : indexOfAnyBut
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringStringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

3.3
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringStringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2267

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringStringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2270

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2271

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringString(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2275

1.1
Location : indexOfAnyBut
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAnyBut_StringStringWithSupplementaryChars(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2304

1.1
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2305

1.1
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsOnly_CharArray(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2307

1.1
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsOnly_String(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2308

1.1
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsOnly_String(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2310

1.1
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2311

1.1
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsOnly_String(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2313

1.1
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2340

1.1
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsOnly_String(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2.2
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsOnly_String(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2341

1.1
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsOnly_String(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2343

1.1
Location : containsOnly
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsOnly_String(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2372

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2.2
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2373

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArray(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2376

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
Replaced integer subtraction with addition → KILLED

2378

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
Replaced integer subtraction with addition → KILLED

2379

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsTest.testEscapeSurrogatePairs(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsTest.testEscapeSurrogatePairs(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2381

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsTest.testEscapeSurrogatePairs(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsTest.testEscapeSurrogatePairs(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2382

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsTest.testEscapeSurrogatePairs(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2383

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2384

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2386

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2388

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
changed conditional boundary → KILLED

2.2
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
Replaced integer addition with subtraction → KILLED

3.3
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
Replaced integer addition with subtraction → KILLED

4.4
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithBadSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

5.5
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2389

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArrayWithSupplementaryChars(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2393

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_CharArray(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2398

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsTest.testEscapeSurrogatePairs(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2425

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_String(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2.2
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_String(org.apache.commons.lang3.StringUtilsContainsTest)
negated conditional → KILLED

2426

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_String(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2428

1.1
Location : containsNone
Killed by : org.apache.commons.lang3.StringUtilsContainsTest.testContainsNone_String(org.apache.commons.lang3.StringUtilsContainsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2461

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2462

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2469

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2470

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2474

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2478

1.1
Location : indexOfAny
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2483

1.1
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : indexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2513

1.1
Location : lastIndexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2.2
Location : lastIndexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2514

1.1
Location : lastIndexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2518

1.1
Location : lastIndexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
changed conditional boundary → KILLED

2.2
Location : lastIndexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : lastIndexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2519

1.1
Location : lastIndexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2523

1.1
Location : lastIndexOfAny
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : lastIndexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
negated conditional → KILLED

2527

1.1
Location : lastIndexOfAny
Killed by : org.apache.commons.lang3.StringUtilsEqualsIndexOfTest.testLastIndexOfAny_StringStringArray(org.apache.commons.lang3.StringUtilsEqualsIndexOfTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

2557

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2558

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstring_StringInt(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED

2562

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstring_StringInt(org.apache.commons.lang3.StringUtilsSubstringTest)
changed conditional boundary → KILLED

2.2
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2563

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

2566

1.1
Location : substring
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2569

1.1
Location : substring
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2570

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstring_StringInt(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED

2573

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED

2612

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2613

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstring_StringIntInt(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED

2617

1.1
Location : substring
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2618

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

2620

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2621

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstring_StringIntInt(org.apache.commons.lang3.StringUtilsSubstringTest)
Replaced integer addition with subtraction → KILLED

2625

1.1
Location : substring
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2630

1.1
Location : substring
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2631

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstring_StringIntInt(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED

2634

1.1
Location : substring
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstring_StringIntInt(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2637

1.1
Location : substring
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2641

1.1
Location : substring
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substring to ( if (x != null) null else throw new RuntimeException ) → KILLED

2667

1.1
Location : left
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testLeft_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2668

1.1
Location : left
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testLeft_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::left to ( if (x != null) null else throw new RuntimeException ) → KILLED

2670

1.1
Location : left
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : left
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testLeft_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2671

1.1
Location : left
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testLeft_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::left to ( if (x != null) null else throw new RuntimeException ) → KILLED

2673

1.1
Location : left
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : left
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testLeft_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2674

1.1
Location : left
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testLeft_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::left to ( if (x != null) null else throw new RuntimeException ) → KILLED

2676

1.1
Location : left
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testLeft_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::left to ( if (x != null) null else throw new RuntimeException ) → KILLED

2700

1.1
Location : right
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testRight_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2701

1.1
Location : right
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testRight_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::right to ( if (x != null) null else throw new RuntimeException ) → KILLED

2703

1.1
Location : right
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : right
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testRight_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2704

1.1
Location : right
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testRight_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::right to ( if (x != null) null else throw new RuntimeException ) → KILLED

2706

1.1
Location : right
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : right
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testRight_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2707

1.1
Location : right
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testRight_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::right to ( if (x != null) null else throw new RuntimeException ) → KILLED

2709

1.1
Location : right
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testRight_String(org.apache.commons.lang3.StringUtilsSubstringTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : right
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testRight_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::right to ( if (x != null) null else throw new RuntimeException ) → KILLED

2738

1.1
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2739

1.1
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::mid to ( if (x != null) null else throw new RuntimeException ) → KILLED

2741

1.1
Location : mid
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : mid
Killed by : none
changed conditional boundary → SURVIVED

3.3
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

4.4
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2742

1.1
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::mid to ( if (x != null) null else throw new RuntimeException ) → KILLED

2744

1.1
Location : mid
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2747

1.1
Location : mid
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
Replaced integer addition with subtraction → KILLED

3.3
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2748

1.1
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::mid to ( if (x != null) null else throw new RuntimeException ) → KILLED

2750

1.1
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
Replaced integer addition with subtraction → KILLED

2.2
Location : mid
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testMid_String(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::mid to ( if (x != null) null else throw new RuntimeException ) → KILLED

2783

1.1
Location : substringBefore
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBefore_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2.2
Location : substringBefore
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBefore_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2784

1.1
Location : substringBefore
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBefore_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBefore to ( if (x != null) null else throw new RuntimeException ) → KILLED

2786

1.1
Location : substringBefore
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBefore_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2787

1.1
Location : substringBefore
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBefore_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBefore to ( if (x != null) null else throw new RuntimeException ) → KILLED

2790

1.1
Location : substringBefore
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBefore_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2791

1.1
Location : substringBefore
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBefore_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBefore to ( if (x != null) null else throw new RuntimeException ) → KILLED

2793

1.1
Location : substringBefore
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBefore_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBefore to ( if (x != null) null else throw new RuntimeException ) → KILLED

2825

1.1
Location : substringAfter
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfter_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2826

1.1
Location : substringAfter
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfter_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfter to ( if (x != null) null else throw new RuntimeException ) → KILLED

2828

1.1
Location : substringAfter
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfter_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2829

1.1
Location : substringAfter
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfter_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfter to ( if (x != null) null else throw new RuntimeException ) → KILLED

2832

1.1
Location : substringAfter
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfter_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2833

1.1
Location : substringAfter
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfter_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfter to ( if (x != null) null else throw new RuntimeException ) → KILLED

2835

1.1
Location : substringAfter
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfter_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
Replaced integer addition with subtraction → KILLED

2.2
Location : substringAfter
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfter_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfter to ( if (x != null) null else throw new RuntimeException ) → KILLED

2866

1.1
Location : substringBeforeLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBeforeLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2.2
Location : substringBeforeLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBeforeLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2867

1.1
Location : substringBeforeLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBeforeLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBeforeLast to ( if (x != null) null else throw new RuntimeException ) → KILLED

2870

1.1
Location : substringBeforeLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBeforeLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2871

1.1
Location : substringBeforeLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBeforeLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBeforeLast to ( if (x != null) null else throw new RuntimeException ) → KILLED

2873

1.1
Location : substringBeforeLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBeforeLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBeforeLast to ( if (x != null) null else throw new RuntimeException ) → KILLED

2906

1.1
Location : substringAfterLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfterLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2907

1.1
Location : substringAfterLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfterLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfterLast to ( if (x != null) null else throw new RuntimeException ) → KILLED

2909

1.1
Location : substringAfterLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfterLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2910

1.1
Location : substringAfterLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfterLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfterLast to ( if (x != null) null else throw new RuntimeException ) → KILLED

2913

1.1
Location : substringAfterLast
Killed by : none
Replaced integer subtraction with addition → SURVIVED

2.2
Location : substringAfterLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfterLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

3.3
Location : substringAfterLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfterLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2914

1.1
Location : substringAfterLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfterLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfterLast to ( if (x != null) null else throw new RuntimeException ) → KILLED

2916

1.1
Location : substringAfterLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfterLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
Replaced integer addition with subtraction → KILLED

2.2
Location : substringAfterLast
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringAfterLast_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringAfterLast to ( if (x != null) null else throw new RuntimeException ) → KILLED

2943

1.1
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED

2974

1.1
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2.2
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

3.3
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2975

1.1
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED

2978

1.1
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2979

1.1
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
Replaced integer addition with subtraction → KILLED

2980

1.1
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2981

1.1
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
Replaced integer addition with subtraction → KILLED

2.2
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED

2984

1.1
Location : substringBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringBetween_StringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED

3010

1.1
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2.2
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

3.3
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

3011

1.1
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringsBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED

3014

1.1
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

3015

1.1
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringsBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED

3021

1.1
Location : substringsBetween
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : substringsBetween
Killed by : none
Replaced integer subtraction with addition → SURVIVED

3.3
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

3023

1.1
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
changed conditional boundary → KILLED

2.2
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

3026

1.1
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
Replaced integer addition with subtraction → KILLED

3028

1.1
Location : substringsBetween
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

3032

1.1
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
Replaced integer addition with subtraction → KILLED

3034

1.1
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

3035

1.1
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringsBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED

3037

1.1
Location : substringsBetween
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testSubstringsBetween_StringStringString(org.apache.commons.lang3.StringUtilsSubstringTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::substringsBetween to ( if (x != null) null else throw new RuntimeException ) → KILLED

3068

1.1
Location : split
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::split to ( if (x != null) null else throw new RuntimeException ) → KILLED

3096

1.1
Location : split
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::split to ( if (x != null) null else throw new RuntimeException ) → KILLED

3125

1.1
Location : split
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::split to ( if (x != null) null else throw new RuntimeException ) → KILLED

3159

1.1
Location : split
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::split to ( if (x != null) null else throw new RuntimeException ) → KILLED

3186

1.1
Location : splitByWholeSeparator
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBoolean(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparator to ( if (x != null) null else throw new RuntimeException ) → KILLED

3217

1.1
Location : splitByWholeSeparator
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparator to ( if (x != null) null else throw new RuntimeException ) → KILLED

3246

1.1
Location : splitByWholeSeparatorPreserveAllTokens
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeSeparatorPreserveAllTokens_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED

3279

1.1
Location : splitByWholeSeparatorPreserveAllTokens
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeSeparatorPreserveAllTokens_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED

3298

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3299

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED

3304

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3305

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED

3308

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3310

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED

3319

1.1
Location : splitByWholeSeparatorWorker
Killed by : none
changed conditional boundary → TIMED_OUT

2.2
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3322

1.1
Location : splitByWholeSeparatorWorker
Killed by : none
changed conditional boundary → TIMED_OUT

2.2
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3323

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBoolean(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3324

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3326

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3337

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

3341

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3342

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeSeparatorPreserveAllTokens_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3343

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeSeparatorPreserveAllTokens_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3350

1.1
Location : splitByWholeSeparatorWorker
Killed by : none
Replaced integer addition with subtraction → TIMED_OUT

3359

1.1
Location : splitByWholeSeparatorWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByWholeSeparatorWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED

3388

1.1
Location : splitPreserveAllTokens
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitPreserveAllTokens_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED

3424

1.1
Location : splitPreserveAllTokens
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitPreserveAllTokens_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED

3442

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3443

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED

3446

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3447

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED

3453

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3454

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3455

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3460

1.1
Location : splitWorker
Killed by : none
Changed increment from 1 to -1 → TIMED_OUT

3465

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3467

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitPreserveAllTokens_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3470

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED

3507

1.1
Location : splitPreserveAllTokens
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitPreserveAllTokens_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED

3547

1.1
Location : splitPreserveAllTokens
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitPreserveAllTokens_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitPreserveAllTokens to ( if (x != null) null else throw new RuntimeException ) → KILLED

3569

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3570

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitPreserveAllTokens_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED

3573

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3574

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitPreserveAllTokens_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED

3581

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3583

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitPreserveAllTokens_String(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3584

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3585

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3587

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3594

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3599

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3601

1.1
Location : splitWorker
Killed by : none
negated conditional → SURVIVED

3604

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3605

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3606

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3608

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3615

1.1
Location : splitWorker
Killed by : none
Changed increment from 1 to -1 → TIMED_OUT

3620

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3624

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3625

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3626

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3628

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3635

1.1
Location : splitWorker
Killed by : none
Changed increment from 1 to -1 → TIMED_OUT

3640

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplit_StringString_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3643

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitPreserveAllTokens_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitPreserveAllTokens_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3646

1.1
Location : splitWorker
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByWholeString_StringStringBooleanInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitWorker to ( if (x != null) null else throw new RuntimeException ) → KILLED

3669

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByCharacterType to ( if (x != null) null else throw new RuntimeException ) → KILLED

3697

1.1
Location : splitByCharacterTypeCamelCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterTypeCamelCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByCharacterTypeCamelCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

3715

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3716

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByCharacterType to ( if (x != null) null else throw new RuntimeException ) → KILLED

3718

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3719

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByCharacterType to ( if (x != null) null else throw new RuntimeException ) → KILLED

3725

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

4.4
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3727

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3730

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterTypeCamelCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterTypeCamelCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3731

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterTypeCamelCase(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

3732

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterTypeCamelCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3733

1.1
Location : splitByCharacterType
Killed by : none
Replaced integer subtraction with addition → SURVIVED

3737

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

3742

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

3743

1.1
Location : splitByCharacterType
Killed by : org.apache.commons.lang3.StringUtilsTest.testSplitByCharacterType(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::splitByCharacterType to ( if (x != null) null else throw new RuntimeException ) → KILLED

3772

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_Objects(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3798

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3799

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3801

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3830

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3831

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3833

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3862

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3863

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3865

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3894

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3895

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3897

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3926

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3927

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3929

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3958

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3959

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3961

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3990

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3991

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

3993

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4022

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4023

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4025

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4056

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4057

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4059

1.1
Location : join
Killed by : none
Replaced integer subtraction with addition → SURVIVED

4060

1.1
Location : join
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4061

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4063

1.1
Location : join
Killed by : none
Replaced integer multiplication with division → SURVIVED

4064

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4065

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4068

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4072

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayCharSeparator(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4107

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4108

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4110

1.1
Location : join
Killed by : none
Replaced integer subtraction with addition → SURVIVED

4111

1.1
Location : join
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4112

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4114

1.1
Location : join
Killed by : none
Replaced integer multiplication with division → SURVIVED

4115

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4116

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4121

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfLongs(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4156

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4157

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4159

1.1
Location : join
Killed by : none
Replaced integer subtraction with addition → SURVIVED

4160

1.1
Location : join
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4161

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4163

1.1
Location : join
Killed by : none
Replaced integer multiplication with division → SURVIVED

4164

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4165

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4170

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfInts(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4205

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4206

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4208

1.1
Location : join
Killed by : none
Replaced integer subtraction with addition → SURVIVED

4209

1.1
Location : join
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4210

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4212

1.1
Location : join
Killed by : none
Replaced integer multiplication with division → SURVIVED

4213

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4214

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4219

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfBytes(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4254

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4255

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4257

1.1
Location : join
Killed by : none
Replaced integer subtraction with addition → SURVIVED

4258

1.1
Location : join
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4259

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4261

1.1
Location : join
Killed by : none
Replaced integer multiplication with division → SURVIVED

4262

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4263

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4268

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfShorts(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4303

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4304

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4306

1.1
Location : join
Killed by : none
Replaced integer subtraction with addition → SURVIVED

4307

1.1
Location : join
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4308

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4310

1.1
Location : join
Killed by : none
Replaced integer multiplication with division → SURVIVED

4311

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4312

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4317

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfChars(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4352

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4353

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4355

1.1
Location : join
Killed by : none
Replaced integer subtraction with addition → SURVIVED

4356

1.1
Location : join
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4357

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4359

1.1
Location : join
Killed by : none
Replaced integer multiplication with division → SURVIVED

4360

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4361

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4366

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfDoubles(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4401

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4402

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4404

1.1
Location : join
Killed by : none
Replaced integer subtraction with addition → SURVIVED

4405

1.1
Location : join
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4406

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4408

1.1
Location : join
Killed by : none
Replaced integer multiplication with division → SURVIVED

4409

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4410

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4415

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayOfFloats(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4443

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4444

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4446

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4485

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4486

1.1
Location : join
Killed by : none
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

4488

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4494

1.1
Location : join
Killed by : none
Replaced integer subtraction with addition → SURVIVED

4495

1.1
Location : join
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4496

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4499

1.1
Location : join
Killed by : none
Replaced integer multiplication with division → SURVIVED

4501

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4502

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4505

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4509

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_ArrayString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4529

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4530

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IteratorChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4532

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4533

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4536

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4538

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4543

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4547

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4550

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4555

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4574

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4575

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IteratorString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4577

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4578

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4581

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4583

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4588

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4592

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4593

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4597

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4601

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4619

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4620

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4622

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4640

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4641

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4643

1.1
Location : join
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoin_IterableString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::join to ( if (x != null) null else throw new RuntimeException ) → KILLED

4667

1.1
Location : joinWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoinWith(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4676

1.1
Location : joinWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoinWith(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4680

1.1
Location : joinWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoinWith(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4685

1.1
Location : joinWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testJoinWith(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::joinWith to ( if (x != null) null else throw new RuntimeException ) → KILLED

4705

1.1
Location : deleteWhitespace
Killed by : org.apache.commons.lang3.StringUtilsTest.testDeleteWhitespace_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4706

1.1
Location : deleteWhitespace
Killed by : org.apache.commons.lang3.StringUtilsTest.testDeleteWhitespace_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::deleteWhitespace to ( if (x != null) null else throw new RuntimeException ) → KILLED

4711

1.1
Location : deleteWhitespace
Killed by : org.apache.commons.lang3.StringUtilsTest.testDeleteWhitespace_String(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : deleteWhitespace
Killed by : org.apache.commons.lang3.StringUtilsTest.testDeleteWhitespace_String(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : deleteWhitespace
Killed by : org.apache.commons.lang3.StringUtilsTest.testDeleteWhitespace_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4712

1.1
Location : deleteWhitespace
Killed by : org.apache.commons.lang3.StringUtilsTest.testDeleteWhitespace_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4713

1.1
Location : deleteWhitespace
Killed by : org.apache.commons.lang3.StringUtilsTest.testDeleteWhitespace_String(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

4716

1.1
Location : deleteWhitespace
Killed by : org.apache.commons.lang3.StringUtilsTest.testDeleteWhitespace_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4717

1.1
Location : deleteWhitespace
Killed by : org.apache.commons.lang3.StringUtilsTest.testDeleteWhitespace_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::deleteWhitespace to ( if (x != null) null else throw new RuntimeException ) → KILLED

4719

1.1
Location : deleteWhitespace
Killed by : org.apache.commons.lang3.StringUtilsTest.testDeleteWhitespace_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::deleteWhitespace to ( if (x != null) null else throw new RuntimeException ) → KILLED

4749

1.1
Location : removeStart
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStart(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : removeStart
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStart(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4750

1.1
Location : removeStart
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStart(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStart to ( if (x != null) null else throw new RuntimeException ) → KILLED

4752

1.1
Location : removeStart
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStart(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4753

1.1
Location : removeStart
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStart(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStart to ( if (x != null) null else throw new RuntimeException ) → KILLED

4755

1.1
Location : removeStart
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStart(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStart to ( if (x != null) null else throw new RuntimeException ) → KILLED

4784

1.1
Location : removeStartIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : removeStartIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4785

1.1
Location : removeStartIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStartIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

4787

1.1
Location : removeStartIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4788

1.1
Location : removeStartIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStartIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

4790

1.1
Location : removeStartIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeStartIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

4818

1.1
Location : removeEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEnd(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : removeEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEnd(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4819

1.1
Location : removeEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEnd(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED

4821

1.1
Location : removeEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEnd(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4822

1.1
Location : removeEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEnd(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : removeEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEnd(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED

4824

1.1
Location : removeEnd
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEnd(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEnd to ( if (x != null) null else throw new RuntimeException ) → KILLED

4854

1.1
Location : removeEndIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEndIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : removeEndIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEndIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4855

1.1
Location : removeEndIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEndIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEndIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

4857

1.1
Location : removeEndIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEndIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4858

1.1
Location : removeEndIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEndIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : removeEndIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEndIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEndIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

4860

1.1
Location : removeEndIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEndIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeEndIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

4887

1.1
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4888

1.1
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::remove to ( if (x != null) null else throw new RuntimeException ) → KILLED

4890

1.1
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::remove to ( if (x != null) null else throw new RuntimeException ) → KILLED

4927

1.1
Location : removeIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : removeIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4928

1.1
Location : removeIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

4930

1.1
Location : removeIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

4953

1.1
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_char(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_char(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4954

1.1
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_char(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::remove to ( if (x != null) null else throw new RuntimeException ) → KILLED

4958

1.1
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_char(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_char(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_char(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4959

1.1
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_char(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4960

1.1
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_char(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

4963

1.1
Location : remove
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemove_char(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::remove to ( if (x != null) null else throw new RuntimeException ) → KILLED

5010

1.1
Location : removeAll
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveAll(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeAll to ( if (x != null) null else throw new RuntimeException ) → KILLED

5056

1.1
Location : removeFirst
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveFirst(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removeFirst to ( if (x != null) null else throw new RuntimeException ) → KILLED

5085

1.1
Location : replaceOnce
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceOnce_StringStringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceOnce to ( if (x != null) null else throw new RuntimeException ) → KILLED

5114

1.1
Location : replaceOnceIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceOnceIgnoreCase_StringStringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceOnceIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

5157

1.1
Location : replacePattern
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemovePattern(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : replacePattern
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemovePattern(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : replacePattern
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemovePattern(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5158

1.1
Location : replacePattern
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemovePattern(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replacePattern to ( if (x != null) null else throw new RuntimeException ) → KILLED

5160

1.1
Location : replacePattern
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemovePattern(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replacePattern to ( if (x != null) null else throw new RuntimeException ) → KILLED

5194

1.1
Location : removePattern
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemovePattern(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::removePattern to ( if (x != null) null else throw new RuntimeException ) → KILLED

5246

1.1
Location : replaceAll
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveAll(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : replaceAll
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveAll(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : replaceAll
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveAll(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5247

1.1
Location : replaceAll
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveAll(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceAll to ( if (x != null) null else throw new RuntimeException ) → KILLED

5249

1.1
Location : replaceAll
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveAll(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceAll to ( if (x != null) null else throw new RuntimeException ) → KILLED

5299

1.1
Location : replaceFirst
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceFirst(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : replaceFirst
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceFirst(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : replaceFirst
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceFirst(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5300

1.1
Location : replaceFirst
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceFirst(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceFirst to ( if (x != null) null else throw new RuntimeException ) → KILLED

5302

1.1
Location : replaceFirst
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceFirst(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceFirst to ( if (x != null) null else throw new RuntimeException ) → KILLED

5329

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replace to ( if (x != null) null else throw new RuntimeException ) → KILLED

5357

1.1
Location : replaceIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceIgnoreCase_StringStringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

5389

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceOnce_StringStringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replace to ( if (x != null) null else throw new RuntimeException ) → KILLED

5424

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4.4
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5425

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceIgnoreCase_StringStringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replace to ( if (x != null) null else throw new RuntimeException ) → KILLED

5428

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5434

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5435

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replace to ( if (x != null) null else throw new RuntimeException ) → KILLED

5438

1.1
Location : replace
Killed by : none
Replaced integer subtraction with addition → SURVIVED

5439

1.1
Location : replace
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5440

1.1
Location : replace
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : replace
Killed by : none
changed conditional boundary → SURVIVED

3.3
Location : replace
Killed by : none
Replaced integer multiplication with division → SURVIVED

4.4
Location : replace
Killed by : none
negated conditional → SURVIVED

5.5
Location : replace
Killed by : none
negated conditional → SURVIVED

5441

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringEscapeUtilsTest.testEscapeCsvString(org.apache.commons.lang3.StringEscapeUtilsTest)
Replaced integer addition with subtraction → KILLED

5442

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5444

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

5445

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
Changed increment from -1 to 1 → KILLED

2.2
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5451

1.1
Location : replace
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replace to ( if (x != null) null else throw new RuntimeException ) → KILLED

5484

1.1
Location : replaceIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveIgnoreCase_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

5527

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArray(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEach to ( if (x != null) null else throw new RuntimeException ) → KILLED

5575

1.1
Location : replaceEachRepeatedly
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5576

1.1
Location : replaceEachRepeatedly
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEachRepeatedly to ( if (x != null) null else throw new RuntimeException ) → KILLED

5635

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4.4
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5.5
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6.6
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5637

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEach to ( if (x != null) null else throw new RuntimeException ) → KILLED

5641

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5650

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5667

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5668

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5669

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5675

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5678

1.1
Location : replaceEach
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5687

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5688

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEach to ( if (x != null) null else throw new RuntimeException ) → KILLED

5697

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : replaceEach
Killed by : none
negated conditional → SURVIVED

5698

1.1
Location : replaceEach
Killed by : none
negated conditional → SURVIVED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5701

1.1
Location : replaceEach
Killed by : none
Replaced integer subtraction with addition → SURVIVED

5702

1.1
Location : replaceEach
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : replaceEach
Killed by : none
negated conditional → SURVIVED

5703

1.1
Location : replaceEach
Killed by : none
Replaced integer multiplication with division → SURVIVED

2.2
Location : replaceEach
Killed by : none
Replaced integer addition with subtraction → SURVIVED

5707

1.1
Location : replaceEach
Killed by : none
Replaced integer division with multiplication → SURVIVED

5709

1.1
Location : replaceEach
Killed by : none
Replaced integer addition with subtraction → SURVIVED

5711

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5713

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5718

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

5725

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5726

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5727

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5733

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5736

1.1
Location : replaceEach
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5746

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5750

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5751

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArray(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEach to ( if (x != null) null else throw new RuntimeException ) → KILLED

5754

1.1
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : replaceEach
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplace_StringStringArrayStringArrayBoolean(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceEach to ( if (x != null) null else throw new RuntimeException ) → KILLED

5780

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testLang623(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5781

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringCharChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceChars to ( if (x != null) null else throw new RuntimeException ) → KILLED

5783

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testLang623(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceChars to ( if (x != null) null else throw new RuntimeException ) → KILLED

5823

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5824

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceChars to ( if (x != null) null else throw new RuntimeException ) → KILLED

5826

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5833

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5836

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5838

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5845

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5846

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceChars to ( if (x != null) null else throw new RuntimeException ) → KILLED

5848

1.1
Location : replaceChars
Killed by : org.apache.commons.lang3.StringUtilsTest.testReplaceChars_StringStringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::replaceChars to ( if (x != null) null else throw new RuntimeException ) → KILLED

5883

1.1
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5884

1.1
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::overlay to ( if (x != null) null else throw new RuntimeException ) → KILLED

5886

1.1
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5890

1.1
Location : overlay
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5893

1.1
Location : overlay
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5896

1.1
Location : overlay
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5899

1.1
Location : overlay
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5902

1.1
Location : overlay
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5907

1.1
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

2.2
Location : overlay
Killed by : none
Replaced integer subtraction with addition → SURVIVED

3.3
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

4.4
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

5.5
Location : overlay
Killed by : org.apache.commons.lang3.StringUtilsTest.testOverlay_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::overlay to ( if (x != null) null else throw new RuntimeException ) → KILLED

5942

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5943

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::chomp to ( if (x != null) null else throw new RuntimeException ) → KILLED

5946

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5948

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5949

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::chomp to ( if (x != null) null else throw new RuntimeException ) → KILLED

5951

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::chomp to ( if (x != null) null else throw new RuntimeException ) → KILLED

5954

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

5957

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5958

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5959

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
Changed increment from -1 to 1 → KILLED

5961

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5962

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

5964

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::chomp to ( if (x != null) null else throw new RuntimeException ) → KILLED

5996

1.1
Location : chomp
Killed by : org.apache.commons.lang3.StringUtilsTest.testChomp(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::chomp to ( if (x != null) null else throw new RuntimeException ) → KILLED

6025

1.1
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6026

1.1
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::chop to ( if (x != null) null else throw new RuntimeException ) → KILLED

6029

1.1
Location : chop
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6030

1.1
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::chop to ( if (x != null) null else throw new RuntimeException ) → KILLED

6032

1.1
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

6035

1.1
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6036

1.1
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::chop to ( if (x != null) null else throw new RuntimeException ) → KILLED

6038

1.1
Location : chop
Killed by : org.apache.commons.lang3.StringUtilsTest.testChop(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::chop to ( if (x != null) null else throw new RuntimeException ) → KILLED

6067

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6068

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6070

1.1
Location : repeat
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6071

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6074

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6075

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6077

1.1
Location : repeat
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : repeat
Killed by : none
negated conditional → SURVIVED

6078

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6081

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer multiplication with division → KILLED

6084

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6089

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : repeat
Killed by : none
Changed increment from -1 to 1 → TIMED_OUT

3.3
Location : repeat
Killed by : none
Changed increment from -1 to 1 → TIMED_OUT

4.4
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer multiplication with division → KILLED

5.5
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

6.6
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6091

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

6093

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6096

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6099

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6124

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6125

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6129

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6155

1.1
Location : repeat
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_CharInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6156

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_CharInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6159

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_CharInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_CharInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from -1 to 1 → KILLED

3.3
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_CharInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

4.4
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_CharInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6162

1.1
Location : repeat
Killed by : org.apache.commons.lang3.StringUtilsTest.testRepeat_CharInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::repeat to ( if (x != null) null else throw new RuntimeException ) → KILLED

6185

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6210

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6211

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6213

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

6214

1.1
Location : rightPad
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6215

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6217

1.1
Location : rightPad
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6218

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6220

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6247

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6248

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6250

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6255

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

6256

1.1
Location : rightPad
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6257

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6259

1.1
Location : rightPad
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6260

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6263

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6264

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6265

1.1
Location : rightPad
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6266

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6270

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6271

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer modulus with multiplication → KILLED

6273

1.1
Location : rightPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testRightPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rightPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6297

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6322

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6323

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6325

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

6326

1.1
Location : leftPad
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6327

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6329

1.1
Location : leftPad
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6330

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6332

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6359

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6360

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6362

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6367

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

6368

1.1
Location : leftPad
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6369

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6371

1.1
Location : leftPad
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6372

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6375

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6376

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6377

1.1
Location : leftPad
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6378

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6382

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6383

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer modulus with multiplication → KILLED

6385

1.1
Location : leftPad
Killed by : org.apache.commons.lang3.StringUtilsTest.testLeftPad_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::leftPad to ( if (x != null) null else throw new RuntimeException ) → KILLED

6401

1.1
Location : length
Killed by : org.apache.commons.lang3.StringUtilsTest.testLengthString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : length
Killed by : org.apache.commons.lang3.StringUtilsTest.testLengthString(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6430

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED

6458

1.1
Location : center
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6459

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED

6462

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

6463

1.1
Location : center
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6464

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED

6466

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer division with multiplication → KILLED

2.2
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

6468

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED

6498

1.1
Location : center
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6499

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED

6501

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6505

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringIntString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

6506

1.1
Location : center
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringIntString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6507

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED

6509

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringIntString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer division with multiplication → KILLED

2.2
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringIntString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

6511

1.1
Location : center
Killed by : org.apache.commons.lang3.StringUtilsTest.testCenter_StringIntString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::center to ( if (x != null) null else throw new RuntimeException ) → KILLED

6536

1.1
Location : upperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testUpperCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6537

1.1
Location : upperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testUpperCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::upperCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

6539

1.1
Location : upperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testUpperCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::upperCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

6559

1.1
Location : upperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testUpperCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6560

1.1
Location : upperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testUpperCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::upperCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

6562

1.1
Location : upperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testUpperCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::upperCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

6585

1.1
Location : lowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testLowerCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6586

1.1
Location : lowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testLowerCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::lowerCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

6588

1.1
Location : lowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testLowerCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::lowerCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

6608

1.1
Location : lowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testLowerCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6609

1.1
Location : lowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testLowerCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::lowerCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

6611

1.1
Location : lowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testLowerCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::lowerCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

6637

1.1
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6638

1.1
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::capitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED

6643

1.1
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6645

1.1
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::capitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED

6650

1.1
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

6651

1.1
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6653

1.1
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

6654

1.1
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

6656

1.1
Location : capitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testCapitalize(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::capitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED

6682

1.1
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testReCapitalize(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testReCapitalize(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6683

1.1
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnCapitalize(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::uncapitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED

6688

1.1
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testReCapitalize(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6690

1.1
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnCapitalize(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::uncapitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED

6695

1.1
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testReCapitalize(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

6696

1.1
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testReCapitalize(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testReCapitalize(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6698

1.1
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testReCapitalize(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

6699

1.1
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testReCapitalize(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

6701

1.1
Location : uncapitalize
Killed by : org.apache.commons.lang3.StringUtilsTest.testReCapitalize(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::uncapitalize to ( if (x != null) null else throw new RuntimeException ) → KILLED

6732

1.1
Location : swapCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSwapCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6733

1.1
Location : swapCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSwapCase_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::swapCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

6739

1.1
Location : swapCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSwapCase_String(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : swapCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSwapCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6742

1.1
Location : swapCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSwapCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6744

1.1
Location : swapCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSwapCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6746

1.1
Location : swapCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSwapCase_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

6751

1.1
Location : swapCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSwapCase_String(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

6752

1.1
Location : swapCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSwapCase_String(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

6754

1.1
Location : swapCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testSwapCase_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::swapCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

6780

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testCountMatches_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

2.2
Location : countMatches
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testCountMatches_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

6781

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testCountMatches_String(org.apache.commons.lang3.StringUtilsSubstringTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6785

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testCountMatches_String(org.apache.commons.lang3.StringUtilsSubstringTest)
negated conditional → KILLED

6786

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testCountMatches_String(org.apache.commons.lang3.StringUtilsSubstringTest)
Changed increment from 1 to -1 → KILLED

6787

1.1
Location : countMatches
Killed by : none
Replaced integer addition with subtraction → TIMED_OUT

6789

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testCountMatches_String(org.apache.commons.lang3.StringUtilsSubstringTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6812

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.ClassUtilsTest.test_getAbbreviatedName_String(org.apache.commons.lang3.ClassUtilsTest)
negated conditional → KILLED

6813

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.StringUtilsSubstringTest.testCountMatches_char(org.apache.commons.lang3.StringUtilsSubstringTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6817

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.ClassUtilsTest.test_getAbbreviatedName_String(org.apache.commons.lang3.ClassUtilsTest)
changed conditional boundary → KILLED

2.2
Location : countMatches
Killed by : org.apache.commons.lang3.ClassUtilsTest.test_getAbbreviatedName_String(org.apache.commons.lang3.ClassUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : countMatches
Killed by : org.apache.commons.lang3.ClassUtilsTest.test_getAbbreviatedName_String(org.apache.commons.lang3.ClassUtilsTest)
negated conditional → KILLED

6818

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.ClassUtilsTest.test_getAbbreviatedName_String(org.apache.commons.lang3.ClassUtilsTest)
negated conditional → KILLED

6819

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.ClassUtilsTest.test_getAbbreviatedName_String(org.apache.commons.lang3.ClassUtilsTest)
Changed increment from 1 to -1 → KILLED

6822

1.1
Location : countMatches
Killed by : org.apache.commons.lang3.ClassUtilsTest.test_getAbbreviatedName_String(org.apache.commons.lang3.ClassUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6848

1.1
Location : isAlpha
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlpha(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6849

1.1
Location : isAlpha
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlpha(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6852

1.1
Location : isAlpha
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlpha(org.apache.commons.lang3.StringUtilsIsTest)
changed conditional boundary → KILLED

2.2
Location : isAlpha
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlpha(org.apache.commons.lang3.StringUtilsIsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAlpha
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlpha(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6853

1.1
Location : isAlpha
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlpha(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6854

1.1
Location : isAlpha
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlpha(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6857

1.1
Location : isAlpha
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlpha(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6883

1.1
Location : isAlphaSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphaspace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6884

1.1
Location : isAlphaSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphaspace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6887

1.1
Location : isAlphaSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphaspace(org.apache.commons.lang3.StringUtilsIsTest)
changed conditional boundary → KILLED

2.2
Location : isAlphaSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphaspace(org.apache.commons.lang3.StringUtilsIsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAlphaSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphaspace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6888

1.1
Location : isAlphaSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphaspace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

2.2
Location : isAlphaSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphaspace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6889

1.1
Location : isAlphaSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphaspace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6892

1.1
Location : isAlphaSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphaspace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6918

1.1
Location : isAlphanumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumeric(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6919

1.1
Location : isAlphanumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumeric(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6922

1.1
Location : isAlphanumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumeric(org.apache.commons.lang3.StringUtilsIsTest)
changed conditional boundary → KILLED

2.2
Location : isAlphanumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumeric(org.apache.commons.lang3.StringUtilsIsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAlphanumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumeric(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6923

1.1
Location : isAlphanumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumeric(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6924

1.1
Location : isAlphanumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumeric(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6927

1.1
Location : isAlphanumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumeric(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6953

1.1
Location : isAlphanumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6954

1.1
Location : isAlphanumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6957

1.1
Location : isAlphanumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
changed conditional boundary → KILLED

2.2
Location : isAlphanumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAlphanumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6958

1.1
Location : isAlphanumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

2.2
Location : isAlphanumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6959

1.1
Location : isAlphanumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6962

1.1
Location : isAlphanumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAlphanumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6992

1.1
Location : isAsciiPrintable
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAsciiPrintable_String(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6993

1.1
Location : isAsciiPrintable
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAsciiPrintable_String(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

6996

1.1
Location : isAsciiPrintable
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAsciiPrintable_String(org.apache.commons.lang3.StringUtilsIsTest)
changed conditional boundary → KILLED

2.2
Location : isAsciiPrintable
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAsciiPrintable_String(org.apache.commons.lang3.StringUtilsIsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAsciiPrintable
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAsciiPrintable_String(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6997

1.1
Location : isAsciiPrintable
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAsciiPrintable_String(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

6998

1.1
Location : isAsciiPrintable
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAsciiPrintable_String(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7001

1.1
Location : isAsciiPrintable
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsAsciiPrintable_String(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7036

1.1
Location : isNumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumeric(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

7037

1.1
Location : isNumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumeric(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7040

1.1
Location : isNumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumeric(org.apache.commons.lang3.StringUtilsIsTest)
changed conditional boundary → KILLED

2.2
Location : isNumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumeric(org.apache.commons.lang3.StringUtilsIsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isNumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumeric(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

7041

1.1
Location : isNumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumeric(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

7042

1.1
Location : isNumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumeric(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7045

1.1
Location : isNumeric
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumeric(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7075

1.1
Location : isNumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

7076

1.1
Location : isNumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7079

1.1
Location : isNumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
changed conditional boundary → KILLED

2.2
Location : isNumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isNumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

7080

1.1
Location : isNumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

2.2
Location : isNumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

7081

1.1
Location : isNumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7084

1.1
Location : isNumericSpace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsNumericSpace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7110

1.1
Location : isWhitespace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsWhitespace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

7111

1.1
Location : isWhitespace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsWhitespace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7114

1.1
Location : isWhitespace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsWhitespace(org.apache.commons.lang3.StringUtilsIsTest)
changed conditional boundary → KILLED

2.2
Location : isWhitespace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsWhitespace(org.apache.commons.lang3.StringUtilsIsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isWhitespace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsWhitespace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

7115

1.1
Location : isWhitespace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsWhitespace(org.apache.commons.lang3.StringUtilsIsTest)
negated conditional → KILLED

7116

1.1
Location : isWhitespace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsWhitespace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7119

1.1
Location : isWhitespace
Killed by : org.apache.commons.lang3.StringUtilsIsTest.testIsWhitespace(org.apache.commons.lang3.StringUtilsIsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7145

1.1
Location : isAllLowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllLowerCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : isAllLowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllLowerCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7146

1.1
Location : isAllLowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllLowerCase(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7149

1.1
Location : isAllLowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllLowerCase(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : isAllLowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllLowerCase(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAllLowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllLowerCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7150

1.1
Location : isAllLowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllLowerCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7151

1.1
Location : isAllLowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllLowerCase(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7154

1.1
Location : isAllLowerCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllLowerCase(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7180

1.1
Location : isAllUpperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllUpperCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : isAllUpperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllUpperCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7181

1.1
Location : isAllUpperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllUpperCase(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7184

1.1
Location : isAllUpperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllUpperCase(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : isAllUpperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllUpperCase(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : isAllUpperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllUpperCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7185

1.1
Location : isAllUpperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllUpperCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7186

1.1
Location : isAllUpperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllUpperCase(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7189

1.1
Location : isAllUpperCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testIsAllUpperCase(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7211

1.1
Location : defaultString
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefault_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : defaultString
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefault_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::defaultString to ( if (x != null) null else throw new RuntimeException ) → KILLED

7232

1.1
Location : defaultString
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefault_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : defaultString
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefault_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::defaultString to ( if (x != null) null else throw new RuntimeException ) → KILLED

7256

1.1
Location : defaultIfBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : defaultIfBlank
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfBlank_StringBuffers(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::defaultIfBlank to ( if (x != null) null else throw new RuntimeException ) → KILLED

7278

1.1
Location : defaultIfEmpty
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfEmpty_CharBuffers(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : defaultIfEmpty
Killed by : org.apache.commons.lang3.StringUtilsTest.testDefaultIfEmpty_CharBuffers(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::defaultIfEmpty to ( if (x != null) null else throw new RuntimeException ) → KILLED

7310

1.1
Location : rotate
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7311

1.1
Location : rotate
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rotate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7315

1.1
Location : rotate
Killed by : none
Replaced integer modulus with multiplication → SURVIVED

2.2
Location : rotate
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : rotate
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4.4
Location : rotate
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7316

1.1
Location : rotate
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rotate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7320

1.1
Location : rotate
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
removed negation → KILLED

2.2
Location : rotate
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer modulus with multiplication → KILLED

7323

1.1
Location : rotate
Killed by : org.apache.commons.lang3.StringUtilsTest.testRotate_StringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::rotate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7343

1.1
Location : reverse
Killed by : org.apache.commons.lang3.StringUtilsTest.testReverse_String(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7344

1.1
Location : reverse
Killed by : org.apache.commons.lang3.StringUtilsTest.testReverse_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::reverse to ( if (x != null) null else throw new RuntimeException ) → KILLED

7346

1.1
Location : reverse
Killed by : org.apache.commons.lang3.StringUtilsTest.testReverse_String(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::reverse to ( if (x != null) null else throw new RuntimeException ) → KILLED

7369

1.1
Location : reverseDelimited
Killed by : org.apache.commons.lang3.StringUtilsTest.testReverseDelimited_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7370

1.1
Location : reverseDelimited
Killed by : org.apache.commons.lang3.StringUtilsTest.testReverseDelimited_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::reverseDelimited to ( if (x != null) null else throw new RuntimeException ) → KILLED

7375

1.1
Location : reverseDelimited
Killed by : org.apache.commons.lang3.StringUtilsTest.testReverseDelimited_StringChar(org.apache.commons.lang3.StringUtilsTest)
removed call to org/apache/commons/lang3/ArrayUtils::reverse → KILLED

7376

1.1
Location : reverseDelimited
Killed by : org.apache.commons.lang3.StringUtilsTest.testReverseDelimited_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::reverseDelimited to ( if (x != null) null else throw new RuntimeException ) → KILLED

7414

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7454

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringIntInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7494

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7535

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7536

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7540

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

7541

1.1
Location : abbreviate
Killed by : none
Replaced integer addition with subtraction → SURVIVED

2.2
Location : abbreviate
Killed by : none
Replaced integer addition with subtraction → SURVIVED

7543

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7546

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7547

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7549

1.1
Location : abbreviate
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7552

1.1
Location : abbreviate
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : abbreviate
Killed by : none
Replaced integer subtraction with addition → SURVIVED

3.3
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

4.4
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7553

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : abbreviate
Killed by : none
Replaced integer subtraction with addition → SURVIVED

7555

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

3.3
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7556

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7558

1.1
Location : abbreviate
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7561

1.1
Location : abbreviate
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : abbreviate
Killed by : none
Replaced integer addition with subtraction → SURVIVED

3.3
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

4.4
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7562

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7564

1.1
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

3.3
Location : abbreviate
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviate_StringStringIntInt(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviate to ( if (x != null) null else throw new RuntimeException ) → KILLED

7597

1.1
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7598

1.1
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviateMiddle to ( if (x != null) null else throw new RuntimeException ) → KILLED

7601

1.1
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

3.3
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

4.4
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5.5
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7602

1.1
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviateMiddle to ( if (x != null) null else throw new RuntimeException ) → KILLED

7605

1.1
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

7606

1.1
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
Replaced integer division with multiplication → KILLED

2.2
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
Replaced integer modulus with multiplication → KILLED

3.3
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

7607

1.1
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
Replaced integer division with multiplication → KILLED

2.2
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

7614

1.1
Location : abbreviateMiddle
Killed by : org.apache.commons.lang3.StringUtilsTest.testAbbreviateMiddle(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::abbreviateMiddle to ( if (x != null) null else throw new RuntimeException ) → KILLED

7648

1.1
Location : difference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifference_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7649

1.1
Location : difference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifference_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::difference to ( if (x != null) null else throw new RuntimeException ) → KILLED

7651

1.1
Location : difference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifference_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7652

1.1
Location : difference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifference_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::difference to ( if (x != null) null else throw new RuntimeException ) → KILLED

7655

1.1
Location : difference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifference_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7656

1.1
Location : difference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifference_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::difference to ( if (x != null) null else throw new RuntimeException ) → KILLED

7658

1.1
Location : difference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifference_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::difference to ( if (x != null) null else throw new RuntimeException ) → KILLED

7687

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7688

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7690

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7691

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7694

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

3.3
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

4.4
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

5.5
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7695

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7699

1.1
Location : indexOfDifference
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : indexOfDifference
Killed by : none
changed conditional boundary → SURVIVED

3.3
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4.4
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7700

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7702

1.1
Location : indexOfDifference
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → NO_COVERAGE

7738

1.1
Location : indexOfDifference
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7739

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7750

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7751

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7762

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7763

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7767

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7768

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7773

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7775

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7776

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7781

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7786

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7790

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7792

1.1
Location : indexOfDifference
Killed by : org.apache.commons.lang3.StringUtilsTest.testDifferenceAt_StringArray(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7829

1.1
Location : getCommonPrefix
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetCommonPrefix_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : getCommonPrefix
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetCommonPrefix_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7830

1.1
Location : getCommonPrefix
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetCommonPrefix_StringArray(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::getCommonPrefix to ( if (x != null) null else throw new RuntimeException ) → KILLED

7833

1.1
Location : getCommonPrefix
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetCommonPrefix_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7835

1.1
Location : getCommonPrefix
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetCommonPrefix_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7836

1.1
Location : getCommonPrefix
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetCommonPrefix_StringArray(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::getCommonPrefix to ( if (x != null) null else throw new RuntimeException ) → KILLED

7838

1.1
Location : getCommonPrefix
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetCommonPrefix_StringArray(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::getCommonPrefix to ( if (x != null) null else throw new RuntimeException ) → KILLED

7839

1.1
Location : getCommonPrefix
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetCommonPrefix_StringArray(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7841

1.1
Location : getCommonPrefix
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetCommonPrefix_StringArray(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::getCommonPrefix to ( if (x != null) null else throw new RuntimeException ) → KILLED

7844

1.1
Location : getCommonPrefix
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetCommonPrefix_StringArray(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::getCommonPrefix to ( if (x != null) null else throw new RuntimeException ) → KILLED

7883

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringNull(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_NullString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7890

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7891

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7892

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7893

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7896

1.1
Location : getLevenshteinDistance
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : getLevenshteinDistance
Killed by : none
negated conditional → SURVIVED

7905

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

7915

1.1
Location : getLevenshteinDistance
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : getLevenshteinDistance
Killed by : none
negated conditional → SURVIVED

7919

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7921

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

7924

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7926

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7928

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

3.3
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

4.4
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

7933

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

7969

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_NullStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

7972

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringNegativeInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8024

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8025

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8026

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8027

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8030

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

3.3
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8031

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8034

1.1
Location : getLevenshteinDistance
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : getLevenshteinDistance
Killed by : none
negated conditional → SURVIVED

8043

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

8044

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

8048

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

8049

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : getLevenshteinDistance
Killed by : none
negated conditional → SURVIVED

8054

1.1
Location : getLevenshteinDistance
Killed by : none
removed call to java/util/Arrays::fill → SURVIVED

8055

1.1
Location : getLevenshteinDistance
Killed by : none
removed call to java/util/Arrays::fill → SURVIVED

8058

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8059

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

8063

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

8064

1.1
Location : getLevenshteinDistance
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : getLevenshteinDistance
Killed by : none
Replaced integer subtraction with addition → SURVIVED

3.3
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

4.4
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8067

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8068

1.1
Location : getLevenshteinDistance
Killed by : none
replaced return of integer sized value with (x == 0 ? 1 : 0) → NO_COVERAGE

8072

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8073

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

8077

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8078

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8080

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

8083

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

3.3
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

8095

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8096

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8098

1.1
Location : getLevenshteinDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetLevenshteinDistance_StringStringInt(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8138

1.1
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_NullString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringNull(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8144

1.1
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8145

1.1
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of double value with -(x + 1) for org/apache/commons/lang3/StringUtils::getJaroWinklerDistance → KILLED

8147

1.1
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

2.2
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

3.3
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double addition with subtraction → KILLED

4.4
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double subtraction with addition → KILLED

5.5
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

6.6
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double addition with subtraction → KILLED

7.7
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

8148

1.1
Location : getJaroWinklerDistance
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

3.3
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double multiplication with division → KILLED

4.4
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double subtraction with addition → KILLED

5.5
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double multiplication with division → KILLED

6.6
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double addition with subtraction → KILLED

7.7
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8149

1.1
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double multiplication with division → KILLED

2.2
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

3.3
Location : getJaroWinklerDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of double value with -(x + 1) for org/apache/commons/lang3/StringUtils::getJaroWinklerDistance → KILLED

8187

1.1
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_NullString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringNull(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8193

1.1
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8194

1.1
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of double value with -(x + 1) for org/apache/commons/lang3/StringUtils::getJaroWinklerSimilarity → KILLED

8196

1.1
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

2.2
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

3.3
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double addition with subtraction → KILLED

4.4
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double subtraction with addition → KILLED

5.5
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

6.6
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double addition with subtraction → KILLED

7.7
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

8197

1.1
Location : getJaroWinklerSimilarity
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

3.3
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double multiplication with division → KILLED

4.4
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double subtraction with addition → KILLED

5.5
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double multiplication with division → KILLED

6.6
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double addition with subtraction → KILLED

7.7
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8198

1.1
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double multiplication with division → KILLED

2.2
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced double division with multiplication → KILLED

3.3
Location : getJaroWinklerSimilarity
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerSimilarity_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of double value with -(x + 1) for org/apache/commons/lang3/StringUtils::getJaroWinklerSimilarity → KILLED

8203

1.1
Location : matches
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8210

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer division with multiplication → KILLED

2.2
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

8212

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
removed call to java/util/Arrays::fill → KILLED

8215

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8217

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

4.4
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

5.5
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

6.6
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8218

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8221

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

8228

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8229

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8231

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

8234

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8235

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8237

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

8241

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8242

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8243

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

8247

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8248

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8249

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

8254

1.1
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer division with multiplication → KILLED

2.2
Location : matches
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetJaroWinklerDistance_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::matches to ( if (x != null) null else throw new RuntimeException ) → KILLED

8284

1.1
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance_StringNullLoclae(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8286

1.1
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance_StringStringNull(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8307

1.1
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8311

1.1
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4.4
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8314

1.1
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8316

1.1
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

8320

1.1
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

2.2
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8321

1.1
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 2 to -2 → KILLED

8333

1.1
Location : getFuzzyDistance
Killed by : org.apache.commons.lang3.StringUtilsTest.testGetFuzzyDistance(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8362

1.1
Location : startsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8388

1.1
Location : startsWithIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8403

1.1
Location : startsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : startsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8404

1.1
Location : startsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : startsWith
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testStartsWith(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
negated conditional → KILLED

3.3
Location : startsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8406

1.1
Location : startsWith
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : startsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8407

1.1
Location : startsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8409

1.1
Location : startsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveStartIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8435

1.1
Location : startsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testStartsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
negated conditional → KILLED

2.2
Location : startsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testStartsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
negated conditional → KILLED

8436

1.1
Location : startsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testStartsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8438

1.1
Location : startsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testStartsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
changed conditional boundary → KILLED

2.2
Location : startsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testStartsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : startsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testStartsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
negated conditional → KILLED

8439

1.1
Location : startsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testStartsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
negated conditional → KILLED

8440

1.1
Location : startsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testStartsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8443

1.1
Location : startsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testStartsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8474

1.1
Location : endsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8501

1.1
Location : endsWithIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testRemoveEndIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8516

1.1
Location : endsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : endsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8517

1.1
Location : endsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : endsWith
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testEndsWithIgnoreCase(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
negated conditional → KILLED

3.3
Location : endsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8519

1.1
Location : endsWith
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : endsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8520

1.1
Location : endsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8522

1.1
Location : endsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

8523

1.1
Location : endsWith
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8570

1.1
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8571

1.1
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::normalizeSpace to ( if (x != null) null else throw new RuntimeException ) → KILLED

8578

1.1
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8581

1.1
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8583

1.1
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

2.2
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8586

1.1
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8587

1.1
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

8589

1.1
Location : normalizeSpace
Killed by : none
Changed increment from 1 to -1 → SURVIVED

8592

1.1
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8593

1.1
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::normalizeSpace to ( if (x != null) null else throw new RuntimeException ) → KILLED

8595

1.1
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : normalizeSpace
Killed by : none
Replaced integer subtraction with addition → SURVIVED

3.3
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

4.4
Location : normalizeSpace
Killed by : org.apache.commons.lang3.StringUtilsTest.testNormalizeSpace(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::normalizeSpace to ( if (x != null) null else throw new RuntimeException ) → KILLED

8620

1.1
Location : endsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testEndsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
negated conditional → KILLED

2.2
Location : endsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testEndsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
negated conditional → KILLED

8621

1.1
Location : endsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testEndsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8623

1.1
Location : endsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testEndsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
changed conditional boundary → KILLED

2.2
Location : endsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testEndsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : endsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testEndsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
negated conditional → KILLED

8624

1.1
Location : endsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testEndsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
negated conditional → KILLED

8625

1.1
Location : endsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testEndsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8628

1.1
Location : endsWithAny
Killed by : org.apache.commons.lang3.StringUtilsStartsEndsWithTest.testEndsWithAny(org.apache.commons.lang3.StringUtilsStartsEndsWithTest)
replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED

8643

1.1
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8644

1.1
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::appendIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

8646

1.1
Location : appendIfMissing
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8647

1.1
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8648

1.1
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8649

1.1
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::appendIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

8653

1.1
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::appendIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

8691

1.1
Location : appendIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissing(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::appendIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

8729

1.1
Location : appendIfMissingIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testAppendIfMissingIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::appendIfMissingIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

8744

1.1
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8745

1.1
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::prependIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

8747

1.1
Location : prependIfMissing
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8748

1.1
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8749

1.1
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8750

1.1
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::prependIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

8754

1.1
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::prependIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

8792

1.1
Location : prependIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissing(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::prependIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

8830

1.1
Location : prependIfMissingIgnoreCase
Killed by : org.apache.commons.lang3.StringUtilsTest.testPrependIfMissingIgnoreCase(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::prependIfMissingIgnoreCase to ( if (x != null) null else throw new RuntimeException ) → KILLED

8850

1.1
Location : toString
Killed by : org.apache.commons.lang3.StringUtilsTest.testToString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : toString
Killed by : org.apache.commons.lang3.StringUtilsTest.testToString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::toString to ( if (x != null) null else throw new RuntimeException ) → KILLED

8867

1.1
Location : toEncodedString
Killed by : org.apache.commons.lang3.StringUtilsTest.testToEncodedString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : toEncodedString
Killed by : org.apache.commons.lang3.StringUtilsTest.testToEncodedString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::toEncodedString to ( if (x != null) null else throw new RuntimeException ) → KILLED

8893

1.1
Location : wrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : wrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8894

1.1
Location : wrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::wrap to ( if (x != null) null else throw new RuntimeException ) → KILLED

8897

1.1
Location : wrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::wrap to ( if (x != null) null else throw new RuntimeException ) → KILLED

8931

1.1
Location : wrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : wrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8932

1.1
Location : wrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrap_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::wrap to ( if (x != null) null else throw new RuntimeException ) → KILLED

8935

1.1
Location : wrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrap_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::wrap to ( if (x != null) null else throw new RuntimeException ) → KILLED

8964

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8965

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::wrapIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

8967

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringChar(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

8968

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8972

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringChar(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

8975

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::wrapIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

9008

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9009

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::wrapIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

9011

1.1
Location : wrapIfMissing
Killed by : none
Replaced integer addition with subtraction → SURVIVED

2.2
Location : wrapIfMissing
Killed by : none
Replaced integer addition with subtraction → SURVIVED

9012

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9016

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9019

1.1
Location : wrapIfMissing
Killed by : org.apache.commons.lang3.StringUtilsTest.testWrapIfMissing_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::wrapIfMissing to ( if (x != null) null else throw new RuntimeException ) → KILLED

9048

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9049

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED

9052

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9056

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9057

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

2.2
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED

9061

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringString(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED

9089

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

2.2
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9090

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED

9093

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

2.2
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

3.3
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9095

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
Replaced integer subtraction with addition → KILLED

9096

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9097

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED

9101

1.1
Location : unwrap
Killed by : org.apache.commons.lang3.StringUtilsTest.testUnwrap_StringChar(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::unwrap to ( if (x != null) null else throw new RuntimeException ) → KILLED

9122

1.1
Location : toCodePoints
Killed by : org.apache.commons.lang3.StringUtilsTest.testToCodePoints(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9123

1.1
Location : toCodePoints
Killed by : org.apache.commons.lang3.StringUtilsTest.testToCodePoints(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::toCodePoints to ( if (x != null) null else throw new RuntimeException ) → KILLED

9125

1.1
Location : toCodePoints
Killed by : org.apache.commons.lang3.StringUtilsTest.testToCodePoints(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9126

1.1
Location : toCodePoints
Killed by : org.apache.commons.lang3.StringUtilsTest.testToCodePoints(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::toCodePoints to ( if (x != null) null else throw new RuntimeException ) → KILLED

9132

1.1
Location : toCodePoints
Killed by : org.apache.commons.lang3.StringUtilsTest.testToCodePoints(org.apache.commons.lang3.StringUtilsTest)
changed conditional boundary → KILLED

2.2
Location : toCodePoints
Killed by : org.apache.commons.lang3.StringUtilsTest.testToCodePoints(org.apache.commons.lang3.StringUtilsTest)
Changed increment from 1 to -1 → KILLED

3.3
Location : toCodePoints
Killed by : org.apache.commons.lang3.StringUtilsTest.testToCodePoints(org.apache.commons.lang3.StringUtilsTest)
negated conditional → KILLED

9134

1.1
Location : toCodePoints
Killed by : org.apache.commons.lang3.StringUtilsTest.testToCodePoints(org.apache.commons.lang3.StringUtilsTest)
Replaced integer addition with subtraction → KILLED

9136

1.1
Location : toCodePoints
Killed by : org.apache.commons.lang3.StringUtilsTest.testToCodePoints(org.apache.commons.lang3.StringUtilsTest)
mutated return of Object value for org/apache/commons/lang3/StringUtils::toCodePoints to ( if (x != null) null else throw new RuntimeException ) → KILLED

Active mutators

Tests examined


Report generated by PIT 1.1.10